Forráskód Böngészése

Add boundsExtend instead of maxing (#412)

Leo Bergman 7 éve
szülő
commit
4f8026d65d
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      h2d/filter/Group.hx

+ 3 - 1
h2d/filter/Group.hx

@@ -24,7 +24,9 @@ class Group extends Filter {
 		this.boundsExtend = 0;
 		for( f in filters ) {
 			f.sync(ctx, s);
-			if( f.boundsExtend > boundsExtend ) boundsExtend = f.boundsExtend;
+			if(f.boundsExtend > 0) {
+				boundsExtend += f.boundsExtend;
+			}
 			if( !f.autoBounds ) autoBounds = false;
 		}
 	}