1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-27 15:21:40 +03:00

fix maximum length calculation in qml side

--the maximum length calculation in qml side
was not calculated correctly for behabeAsPlasmaPanel
flag
This commit is contained in:
Michail Vourlakos 2018-11-18 20:47:30 +02:00
parent 1888fb7c80
commit 9c3107d363

View File

@ -187,8 +187,8 @@ DragDrop.DropArea {
property int iconStep: 8
property int latteAppletPos: -1
property int maxLength: root.isHorizontal ? width * (plasmoid.configuration.maxLength/100)
: height * (plasmoid.configuration.maxLength/100)
property int maxLength: root.isHorizontal ? behaveAsPlasmaPanel ? width : width * (plasmoid.configuration.maxLength/100)
: behabeAsPlasmaPanel ? height : height * (plasmoid.configuration.maxLength/100)
property int middleClickAction: plasmoid.configuration.middleClickAction
property int modifier: plasmoid.configuration.modifier