Skip to content

Commit 1fae676

Browse files
wjyrichBLumia
authored andcommitted
fix: The icons residing on pannel move from the right side to the left side.
set a flag for NumberAnimation. pms: BUG-309403
1 parent 1b5e4b7 commit 1fae676

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

panels/dock/package/main.qml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,21 @@ Window {
347347
Layout.topMargin: useColumnLayout && Panel.itemAlignment === Dock.CenterAlignment ?
348348
(dock.height - dockCenterPart.implicitHeight) / 2 - (dockLeftPart.implicitHeight + 20) + Math.min((dock.height - dockCenterPart.implicitHeight) / 2 - (dockRightPart.implicitHeight + 20), 0) : 0
349349

350-
Behavior on Layout.leftMargin { NumberAnimation { duration: 200; easing.type: Easing.OutCubic } }
351-
Behavior on Layout.topMargin { NumberAnimation { duration: 200; easing.type: Easing.OutCubic } }
350+
Behavior on Layout.leftMargin {
351+
enabled: !dock.isDragging
352+
NumberAnimation {
353+
duration: 200
354+
easing.type: Easing.OutCubic
355+
}
356+
}
357+
358+
Behavior on Layout.topMargin {
359+
enabled: !dock.isDragging
360+
NumberAnimation {
361+
duration: 200
362+
easing.type: Easing.OutCubic
363+
}
364+
}
352365

353366
OverflowContainer {
354367
id: centerLoader

0 commit comments

Comments
 (0)