Browse Source

fixed bug with auto width and height

Adam Bowman 8 years ago
parent
commit
bd580a59af
1 changed files with 2 additions and 2 deletions
  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){