consider maximumWidth=0 as valid

--for applets that fillwidth and have
also set their maximumWidth we take that
value into account even when maximumWitdth=0
v0.8
Michail Vourlakos 6 years ago
parent 5472a77c3b
commit fea6088695

@ -44,7 +44,7 @@ function computeStep1ForLayout(layout, availableSpace, sizePerApplet, noOfApplet
if (curApplet && curApplet.applet && curApplet.applet.Layout)
maxSize = root.isVertical ? curApplet.applet.Layout.maximumHeight : curApplet.applet.Layout.maximumWidth;
if (curApplet.needsFillSpace && (maxSize <= sizePerApplet) && (maxSize>=1) && (maxSize !== Infinity)) {
if (curApplet.needsFillSpace && (maxSize <= sizePerApplet) && (maxSize>=0) && (maxSize !== Infinity)) {
curApplet.sizeForFill = maxSize;
// console.log("s3_1 "+ maxSize);
curApplet.inFillCalculations = false;

Loading…
Cancel
Save