Skip to content

Commit 047ceb7

Browse files
jondkinneyclaude
andcommitted
ui: wrap window content in GtkScrolledWindow
The Lan Mouse window previously couldn't scroll its preference groups when the window height was reduced below the natural content height — content was simply clipped, with no way to reach the lower groups. AdwStatusPage doesn't include built-in scrolling. Wrap the AdwStatusPage in a GtkScrolledWindow inside the existing AdwToastOverlay, with vertical scroll on demand and horizontal scroll disabled (we use AdwClamp for horizontal sizing). propagate-natural-height keeps the window's preferred size identical when content fits, so existing layout behavior on tall windows is unchanged. Effect: when the user resizes the window shorter than the natural content height (or has a small display), all preference groups remain reachable via vertical scroll. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 27859ce commit 047ceb7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lan-mouse-gtk/resources/window.ui

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<property name="hexpand">true</property>
3838
<property name="hscrollbar-policy">never</property>
3939
<property name="vscrollbar-policy">automatic</property>
40+
<property name="propagate-natural-height">true</property>
4041
<child>
4142
<object class="AdwStatusPage">
4243
<property name="title" translatable="yes">Lan Mouse</property>

0 commit comments

Comments
 (0)