Commit 21226d7
fix(dock): fix premature icon label compression in taskbar
Use iconSize instead of maxSize to calculate other items' occupied
space, and remove overly aggressive implicit size constraints that
shrink task items before the taskbar is actually full.
使用图标尺寸而非最大尺寸计算其他项占用空间,移除过度限制
隐式大小的约束,避免任务栏未满时就开始压缩图标标签。
Log: 修复任务栏未满时图标标签被过早压缩的问题
PMS: 358915
Influence: 1.打开多个应用时,任务栏要占满时再开始挤压应用标签;2.相邻应用标签的文案和背景不重叠;3.应用程序过多时,应用图标会溢出任务栏中间区域,后期考虑溢出处理方案。1 parent 18ef378 commit 21226d7
3 files changed
Lines changed: 6 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
| 135 | + | |
| 136 | + | |
153 | 137 | | |
154 | 138 | | |
155 | 139 | | |
| |||
0 commit comments