From 5302028a00ad6e0f004082fb627e88a2d54361ab Mon Sep 17 00:00:00 2001 From: Ivy233 Date: Tue, 17 Mar 2026 14:03:06 +0800 Subject: [PATCH] fix(tray): use positionForAnimation to prevent layout direction abrupt change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When dock position changes from bottom to right/left, the tray layout direction should transition smoothly with animation instead of changing abruptly. This fix binds useColumnLayout to positionForAnimation instead of Panel.position, ensuring the layout direction updates after the position animation completes. 修复任务栏位置切换时系统托盘布局方向突变的问题。将托盘的布局方向 绑定到 positionForAnimation,使其与 dock 主面板保持同步,在位置动画 完成后才改变布局方向,避免切换过程中的视觉突变。 PMS: BUG-353295 --- panels/dock/tray/package/tray.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/dock/tray/package/tray.qml b/panels/dock/tray/package/tray.qml index 11b9b6419..e6c9a0303 100644 --- a/panels/dock/tray/package/tray.qml +++ b/panels/dock/tray/package/tray.qml @@ -17,7 +17,7 @@ AppletItem { id: tray readonly property int nextAppletSpacing: 6 - property bool useColumnLayout: Panel.position % 2 + property bool useColumnLayout: Panel.rootObject.positionForAnimation % 2 property int dockOrder: 25 readonly property string quickpanelTrayItemPluginId: "sound" readonly property var filterTrayPlugins: [quickpanelTrayItemPluginId]