Commit 411216b
committed
fix: improve task manager layout calculation
Changed dock layout calculation to use new dockRemainingSpaceForCenter
property instead of dockLeftSpaceForCenter
Modified implicitWidth/Height calculations in dockCenterPart to account
for task manager's center dimensions
Replaced Math.min with Math.max in task manager size calculations to
ensure proper space allocation
Added centerWidth and centerHeight properties in task manager for
accurate centering calculations
These changes fix layout issues where task manager was not properly
utilizing available space and improve centering behavior
fix: 改进任务管理器布局计算
使用新的 dockRemainingSpaceForCenter 属性替代 dockLeftSpaceForCenter 进
行停靠栏布局计算
修改 dockCenterPart 中的隐式宽度/高度计算以考虑任务管理器的居中尺寸
将任务管理器尺寸计算中的 Math.min 替换为 Math.max 以确保正确分配空间
在任务管理器中添加 centerWidth 和 centerHeight 属性以实现精确的居中计算
这些更改解决了任务管理器未正确利用可用空间的布局问题,并改进了居中行为
Pms: BUG-3275831 parent 45e47ee commit 411216b
2 files changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
421 | 424 | | |
422 | 425 | | |
423 | 426 | | |
424 | | - | |
425 | | - | |
| 427 | + | |
| 428 | + | |
426 | 429 | | |
427 | 430 | | |
428 | 431 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
33 | | - | |
34 | | - | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
0 commit comments