Browse Source

Revert h2d.Flow max col/line size limit

Leonardo Jeanteur 3 years ago
parent
commit
f6244218f8
1 changed files with 5 additions and 5 deletions
  1. 5 5
      h2d/Flow.hx

+ 5 - 5
h2d/Flow.hx

@@ -1241,10 +1241,10 @@ class Flow extends Object {
 				autoWidth -= horizontalSpacing;
 				autoWidth -= horizontalSpacing;
 				if(p.autoSize == null) {
 				if(p.autoSize == null) {
 					calcSize(p, c);
 					calcSize(p, c);
-					if( p.calculatedHeight > maxLineHeight ) maxLineHeight = p.calculatedHeight;
+					// if( p.calculatedHeight > maxLineHeight ) maxLineHeight = p.calculatedHeight;
 					autoWidth -= p.calculatedWidth;
 					autoWidth -= p.calculatedWidth;
 				}
 				}
-				else 
+				else
 					autoSum += p.autoSize;
 					autoSum += p.autoSize;
 			});
 			});
 
 
@@ -1399,10 +1399,10 @@ class Flow extends Object {
 			}
 			}
 
 
 			forChildren(function(i, p, c) {
 			forChildren(function(i, p, c) {
-				autoHeight -= verticalSpacing; 
+				autoHeight -= verticalSpacing;
 				if(p.autoSize == null) {
 				if(p.autoSize == null) {
 					calcSize(p, c);
 					calcSize(p, c);
-					if( p.calculatedWidth > maxColWidth ) maxColWidth = p.calculatedWidth;
+					// if( p.calculatedWidth > maxColWidth ) maxColWidth = p.calculatedWidth;
 					autoHeight -= p.calculatedHeight;
 					autoHeight -= p.calculatedHeight;
 				}
 				}
 				else
 				else
@@ -1430,7 +1430,7 @@ class Flow extends Object {
 					if( p.calculatedWidth > maxColWidth ) maxColWidth = p.calculatedWidth;
 					if( p.calculatedWidth > maxColWidth ) maxColWidth = p.calculatedWidth;
 				}
 				}
 			});
 			});
-			
+
 			alignLine(children.length);
 			alignLine(children.length);
 			ch += paddingBottom + borderBottom;
 			ch += paddingBottom + borderBottom;
 			cw = x + maxColWidth + paddingRight + borderRight;
 			cw = x + maxColWidth + paddingRight + borderRight;