From 3d53da2c7840621147f4c35aa8061083745b71d7 Mon Sep 17 00:00:00 2001 From: Ivy233 Date: Mon, 15 Jun 2026 15:56:29 +0800 Subject: [PATCH] fix(dock): align delegate implicitHeight with icon ratio for consistent spacing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change the delegate implicitHeight in vertical layout from visualModel.cellWidth (dockItemMaxSize * 0.8) to dockItemMaxSize * 9 / 14 (icon size), so the app item uses the same size coefficient in both orientations. This ensures that the gap between adjacent apps is visually equal to the gap from the last plugin to the first app on both horizontal and vertical docks. 纵向布局时,将 delegate 隐式高度从 dockItemMaxSize * 0.8 改为 dockItemMaxSize * 9 / 14(图标尺寸),使横竖排应用项尺寸系数统一, 确保应用间距与插件到首个应用的间距在双侧布局中保持一致。 Log: 修复纵向任务栏应用间距与插件间距不一致的问题 PMS: BUG-364523 --- panels/dock/taskmanager/package/TaskManager.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/dock/taskmanager/package/TaskManager.qml b/panels/dock/taskmanager/package/TaskManager.qml index 1ce33f963..d2cb25e4e 100644 --- a/panels/dock/taskmanager/package/TaskManager.qml +++ b/panels/dock/taskmanager/package/TaskManager.qml @@ -151,7 +151,7 @@ ContainmentItem { Behavior on scale { NumberAnimation { duration: 200 } } implicitWidth: useColumnLayout ? taskmanager.implicitWidth : appItem.implicitWidth - implicitHeight: useColumnLayout ? visualModel.cellWidth : taskmanager.implicitHeight + implicitHeight: useColumnLayout ? Panel.rootObject.dockItemMaxSize * 9 / 14 : taskmanager.implicitHeight property int visualIndex: DelegateModel.itemsIndex property var modelIndex: visualModel.modelIndex(index)