Преглед на файлове

Add boundsExtend instead of maxing (#412)

Leo Bergman преди 7 години
родител
ревизия
4f8026d65d
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  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;
 		}
 	}