瀏覽代碼

fixed bug with auto width and height

Adam Bowman 8 年之前
父節點
當前提交
bd580a59af
共有 1 個文件被更改,包括 2 次插入2 次删除
  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){