1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-28 18:50:40 +03:00

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
This commit is contained in:
Michail Vourlakos 2018-11-18 15:53:57 +02:00
parent 5472a77c3b
commit fea6088695

View File

@ -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;