Popovers can pop out of the screen
This is not a bug in libhandy but I opened this issue to gather knowledge on something we want in GTK+.
Conversation with the GTK+ devs:
Adrien Plazas: I would still love to have a scrolled window in popovers :) So instead of poping out of the screen without being controllable on small screens they could remain usable
baedert (IRC): you could, like, add a scrolled window to your popover?
Adrien Plazas: And have it take the size of a tiny square because the popover will fit the minimum size of the scrolled window? Sure I could
Company (IRC): there's a property for that, no?
Adrien Plazas: But that's not what I want :p And forcing a minimum height isn't going to help much as I would have to take a very small one to be sure to fit in anything, like a phone's screen in landscape mode
baedert (IRC): you wouldn't be the first person to use a scrolled window in a popover
Company (IRC): gtk_scrolled_window_set_propagate_natural_height ()
Adrien Plazas: CCompany: would that prevent the popover to go out of the screen?
Company (IRC): it should
Adrien Plazas: Interresting :o C Company (IRC): windows and popovers should be sized: (1) as large as necessary due to min size (2) not larger than the screen allows (3) as large as natural size in that order but because GTK2 didn't have natural size, people kept using gtk_window_set_default_size() and nobody debugged proper natural sizing so there might still be bugs
Adrien Plazas: Company (IRC): unfortunately the popover is still running out of the screen on Wayland and it's still cut when leaving the window on Xorg when it contains a scrolled window using its content's natural size That being said it was a GtkPopoverMenu, not a GtkPopover Same problem with a GtkPopover (which hence doesn't contain a GtkStack)
Company (IRC): sounds like a fun thing to debug :/
Adrien Plazas: Yeah :|
Company (IRC): and you'd have the same problem if there was scrolling in GtkPopover