Commit 15fb1ed
alferio
fix(ui): toolbars collapsed width glitch
- The collapsed toolbar width logic was already shrinking the content area.
- But the VisWindow title label still kept its full text, so the window pref width stayed title-driven on initial render and in auto-collapse mode.
I fixed it in core/src/main/kotlin/com/github/alfu32/sketch/ui/SketchUiOverlay.kt.
- CollapsibleWindow now stores its base title and can switch to a compact-title mode
- when a toolbar is auto-collapsed:
- the title text is set to ""
- when expanded:
- the full title is restored
That makes the collapsed window width depend on the visible button, not on the title text.1 parent 5e8555d commit 15fb1ed
2 files changed
Lines changed: 12 additions & 0 deletions
File tree
- core/src/main/kotlin/com/github/alfu32/sketch/ui
- web/build/tmp/compileJava
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
174 | 175 | | |
| 176 | + | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| |||
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
197 | 208 | | |
198 | 209 | | |
199 | 210 | | |
| |||
1762 | 1773 | | |
1763 | 1774 | | |
1764 | 1775 | | |
| 1776 | + | |
1765 | 1777 | | |
1766 | 1778 | | |
1767 | 1779 | | |
| |||
Binary file not shown.
0 commit comments