Commit e309e02
committed
fix: improve dock center space calculation and taskmanager layout
1. Replaced temporary overflow logic with dynamic calculation of
remaining space for center dock area
2. Added function to count center applets excluding TaskManager for
accurate space allocation
3. Simplified dockCenterPart implicit dimensions by removing
TaskManager-specific adjustments
4. Updated TaskManager to use consistent remaining space calculation and
improved implicit dimension logic
5. Enhanced app container sizing to properly distribute available space
among app items
6. Fixed dockItemMaxSize calculation to use correct remaining space
reference
Log: Improved dock layout calculation for better space distribution and
task manager display
Influence:
1. Test dock layout in different positions (left, right, top, bottom)
2. Verify center area plugins display correctly with varying numbers
3. Check TaskManager app item sizing and spacing in different
configurations
4. Test with multiple center area plugins alongside TaskManager
5. Verify layout stability when adding/removing center plugins
6. Test edge cases with minimal/maximal numbers of app items
fix: 改进任务栏中心区域空间计算和任务管理器布局
1. 用动态计算替换临时的溢出逻辑,准确计算中心区域剩余空间
2. 新增函数统计除任务管理器外的中心区域插件数量,实现精确空间分配
3. 简化dockCenterPart的隐式尺寸计算,移除任务管理器特定调整
4. 更新任务管理器使用一致的剩余空间计算和改进的隐式尺寸逻辑
5. 增强应用容器尺寸计算,在应用项之间合理分配可用空间
6. 修复dockItemMaxSize计算,使用正确的剩余空间引用
Log: 改进任务栏布局计算,优化空间分配和任务管理器显示
Influence:
1. 测试任务栏在不同位置(左、右、上、下)的布局
2. 验证中心区域插件在不同数量下的正确显示
3. 检查任务管理器应用项在不同配置下的尺寸和间距
4. 测试多个中心区域插件与任务管理器共存的情况
5. 验证添加/移除中心插件时的布局稳定性
6. 测试最小/最大应用项数量的边界情况
PMS: BUG-3558331 parent f4f5262 commit e309e02
2 files changed
Lines changed: 62 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
29 | 49 | | |
30 | 50 | | |
31 | 51 | | |
| |||
289 | 309 | | |
290 | 310 | | |
291 | 311 | | |
| 312 | + | |
292 | 313 | | |
293 | 314 | | |
294 | 315 | | |
| |||
460 | 481 | | |
461 | 482 | | |
462 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
463 | 487 | | |
464 | 488 | | |
465 | 489 | | |
| |||
527 | 551 | | |
528 | 552 | | |
529 | 553 | | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
| 554 | + | |
| 555 | + | |
542 | 556 | | |
543 | 557 | | |
544 | 558 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | | - | |
| 67 | + | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
| |||
133 | 132 | | |
134 | 133 | | |
135 | 134 | | |
136 | | - | |
137 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
138 | 153 | | |
139 | 154 | | |
140 | 155 | | |
| |||
274 | 289 | | |
275 | 290 | | |
276 | 291 | | |
277 | | - | |
| 292 | + | |
278 | 293 | | |
279 | 294 | | |
280 | 295 | | |
0 commit comments