Skip to content

Commit 7ed73e9

Browse files
committed
fix: elements not aligned correctly when dock resize
修复用户拖拽 dock 调整高度时,dock内元素未居中的问题. PMS: BUG-312831 Log:
1 parent c22bcd9 commit 7ed73e9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

panels/dock/package/main.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ Window {
235235

236236
Item {
237237
id: dockContainer
238-
width: dock.useColumnLayout ? Panel.dockSize : parent.width
239-
height: dock.useColumnLayout ? parent.height : Panel.dockSize
238+
width: dock.useColumnLayout ? dock.dockSize : parent.width
239+
height: dock.useColumnLayout ? parent.height : dock.dockSize
240240
anchors {
241241
left: parent.left
242242
top: parent.top

panels/dock/tray/package/tray.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ AppletItem {
102102
isHorizontal: !tray.useColumnLayout
103103
model: DDT.TraySortOrderModel
104104
collapsed: DDT.TraySortOrderModel.collapsed
105-
trayHeight: isHorizontal ? tray.implicitHeight : tray.implicitWidth
105+
trayHeight: Panel.rootObject.dockSize
106106
surfaceAcceptor: isTrayPluginPopup
107107
color: "transparent"
108108
Component.onCompleted: {

0 commit comments

Comments
 (0)