How to resize a scollable window when the user resizes the application window?

Noob question here. I’m building a GTK application that has a large scrollable window and a few buttons on under the scrollable window. I’m using:


When I launch the application and drag the bottom right corner of the window to resize it, the scrollable window does not resize. The buttons also don’t move.

I want to resize the scrollable window with the application window and I’d like the button in the bottom right corner of the application window to be “attached” (i.e. to move with) the bottom right corner of the application window.

How do I do that?


  • ScrolledWindow: hexpand=true, halign=fill vexpand=true, valign=fill
  • Third button: hexpand=true, halign=end.

That work great!
Thank you!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.