Commit 091ecc0
fix(ui): eliminate empty space — measure content via cursor, not min_rect
min_rect() on CentralPanel returns the panel's allocated rect (= window
size), so the window never shrank. Now use cursor.y - max_rect.top to
get actual content extent. Also remove with_resizable(false) which
blocked ViewportCommand::InnerSize on some Wayland compositors.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6a7f225 commit 091ecc0
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
939 | 939 | | |
940 | 940 | | |
941 | 941 | | |
942 | | - | |
943 | | - | |
944 | | - | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
| |||
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
986 | | - | |
987 | | - | |
| 986 | + | |
988 | 987 | | |
989 | 988 | | |
990 | 989 | | |
| |||
0 commit comments