1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-23 13:33:50 +03:00

fix minimumLength for !compositing

This commit is contained in:
Michail Vourlakos 2020-04-05 19:26:02 +03:00
parent 6034073dd0
commit ef41f17ef3

View File

@ -278,9 +278,9 @@ Item {
property int minLength: {
if (root.isHorizontal) {
return behaveAsPlasmaPanel ? width : width * (minLengthPerCentage/100)
return behaveAsPlasmaPanel && Latte.WindowSystem.compositingActive ? width : width * (minLengthPerCentage/100)
} else {
return behaveAsPlasmaPanel ? height : height * (minLengthPerCentage/100)
return behaveAsPlasmaPanel && Latte.WindowSystem.compositingActive ? height : height * (minLengthPerCentage/100)
}
}