Skip to content

Commit 869b21f

Browse files
Ivy233deepin-bot[bot]
authored andcommitted
fix(dock): align delegate implicitHeight with icon ratio for consistent spacing
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
1 parent 832e381 commit 869b21f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

panels/dock/taskmanager/package/TaskManager.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ ContainmentItem {
151151
Behavior on scale { NumberAnimation { duration: 200 } }
152152

153153
implicitWidth: useColumnLayout ? taskmanager.implicitWidth : appItem.implicitWidth
154-
implicitHeight: useColumnLayout ? visualModel.cellWidth : taskmanager.implicitHeight
154+
implicitHeight: useColumnLayout ? Panel.rootObject.dockItemMaxSize * 9 / 14 : taskmanager.implicitHeight
155155

156156
property int visualIndex: DelegateModel.itemsIndex
157157
property var modelIndex: visualModel.modelIndex(index)

0 commit comments

Comments
 (0)