2
0
Эх сурвалжийг харах

fixed removeChildren wrt scrollBar

Nicolas Cannasse 4 жил өмнө
parent
commit
2215e97d4b
1 өөрчлөгдсөн 6 нэмэгдсэн , 2 устгасан
  1. 6 2
      h2d/Flow.hx

+ 6 - 2
h2d/Flow.hx

@@ -886,9 +886,13 @@ class Flow extends Object {
 
 	override function removeChildren() {
 		var k = 0;
-		while( numChildren>k ) {
+
+		while( numChildren > k ) {
 			var c = getChildAt(k);
-			if( c == background || c == interactive || c == debugGraphics ) k++; else removeChild(c);
+			if( c == background
+				|| c == interactive
+				|| c == debugGraphics
+				|| c == scrollBar ) k++; else removeChild(c);
 		}
 	}