Browse Source

fixed bug with auto width and height

Adam Bowman 8 năm trước cách đây
mục cha
commit
bd580a59af
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      canvas2D/src/Engine/babylon.canvas2dLayoutEngine.ts

+ 2 - 2
canvas2D/src/Engine/babylon.canvas2dLayoutEngine.ts

@@ -404,7 +404,7 @@
 
             if(children){
 
-                for(let i = 0; i > cl; i++){
+                for(let i = 0; i < cl; i++){
                     let child = children[rowNum][i];
                     if(child){
                         if(maxHeight < child.actualHeight){
@@ -432,7 +432,7 @@
 
             if(children){
 
-                for(let i = 0; i > rl; i++){
+                for(let i = 0; i < rl; i++){
                     let child = children[i][colNum];
                     if(child){
                         if(maxWidth < child.actualWidth){