Runtime warnings "Allocation width too small"
I see Allocation width too small
and Allocation height too small
runtime warnings from gtk+ using libadwaita 1.0.1 and gtk+ 4.6.0 in gmome-software. I managed to reproduce it outside of the gnome-software using this simple test program. The first line of it contains a comment how to compile & run it.
When the window opens, grab the right bottom corner to make the window slightly larger and then as smallest as possible (in both directions, vertically and horizontally), and you'll see the runtime warnings like these:
(process:46001): Gtk-CRITICAL **: 13:46:11.183: Allocation height too small. Tried to allocate 110x134, but
GtkWindow 0x1054320 needs at least 110x382.
(process:46001): Gtk-CRITICAL **: 13:46:11.183: Allocation height too small. Tried to allocate 110x134, but
AdwClamp 0x110c360 needs at least 110x382.
(process:46001): Gtk-CRITICAL **: 13:46:11.183: Allocation height too small. Tried to allocate 86x134, but
GtkBox 0x110c1f0 needs at least 86x382.
(process:46001): Gtk-CRITICAL **: 13:46:11.183: Allocation width too small. Tried to allocate 86x134, but
GtkBox 0x110c1f0 needs at least 303x134.
It's possible it's related to the AdwClamp, because when I do not use it the warnings are gone. It's the reason why I filled it here.
I noticed one thing, when I make the window as smallest as possible vertically and then not as that small horizontally, then there is a state when the window doesn't show all the text, but when I make it the smallest horizontally, then it expands its height (and, similarly, when I make it slightly larger horizontally, then the window height changes significantly, hiding some of the content).
Few pixels before smallest width:
The smallest width: