소스 검색

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;
 		}
 	}