GtkLabel overflows under certain containers and circumstances instead of wrapping
Steps to reproduce
I could reduce it to reproducer.vala
(valac --target-glib=2.74 --pkg gtk4 --pkg libadwaita-1 reproducer.vala && ./reproducer
)
Current behavior
The label overflows past its container
Expected outcome
The label should wrap and not overflow
Version information
GTK 4.12.5 - Debian Sid
Additional information
It currently looks like this:
At a smaller or larger window size, it will work as expected:
- It happens only on some label texts, like the one in the reproducer
- When writing the reproducer, the stack had also something to do with it
- As a workaround, setting ellipsize to end and lines to a far bigger one, fixes it but that has opened a whole other can of worms
Edited by Evangelos Paterakis