You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: panels/dock/taskmanager/package/TaskManager.qml
+12-29Lines changed: 12 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -14,32 +14,17 @@ ContainmentItem {
14
14
property bool useColumnLayout:Panel.position%2
15
15
property int dockOrder:16
16
16
property int remainingSpacesForTaskManager:Panel.itemAlignment===Dock.LeftAlignment?Panel.rootObject.dockLeftSpaceForCenter:Panel.rootObject.dockRemainingSpaceForCenter
17
-
property int forceRelayoutWorkaround:0
18
17
19
18
property int remainingSpacesForSplitWindow:Panel.rootObject.dockLeftSpaceForCenter- (Panel.rootObject.dockCenterPartCount-1) *Panel.rootObject.dockItemMaxSize*9/14
20
19
// 用于居中计算的实际应用区域尺寸
21
-
property int appContainerWidth: useColumnLayout ?Panel.rootObject.dockSize:(appContainer.implicitWidth+ forceRelayoutWorkaround)
22
-
property int appContainerHeight: useColumnLayout ?(appContainer.implicitHeight+ forceRelayoutWorkaround):Panel.rootObject.dockSize
20
+
property int appContainerWidth: useColumnLayout ?Panel.rootObject.dockSize:appContainer.implicitWidth
21
+
property int appContainerHeight: useColumnLayout ?appContainer.implicitHeight:Panel.rootObject.dockSize
23
22
24
23
// 动态字符限制数组,存储每个应用的最大显示字符数
25
24
property var dynamicCharLimits: []
26
25
27
-
Timer {
28
-
// FIXME: dockItemMaxSize(visualModel.cellWidth,actually its implicitWidth/Height) change will cause all delegate item's position change, but
29
-
// the newly added item will using the old cellWidth to calculate its position, thus it will be placed in the wrong position. Also it
30
-
// seems forceLayout() simply doesn't work, so we use a workaround here to force relayout the ListView inside the OverflowContainer.
31
-
// See: QTBUG-133953
32
-
id: relayoutWorkaroundTimer
33
-
interval:250// should longer than OverflowContainer.add duration
0 commit comments