Page 1 of 1

[1.0.0] Setting .style.single_line = false on label breaks height calculation

Posted: Thu Sep 10, 2020 2:00 pm
by Therenas
When you set single_line to false on a label, the game still considers the height of the label to be that of a single line of text, even if the actual text displayed gets spread over multiple lines. This breaks some situations, like when using vertically_stretchable empty-widgets to vertically center the label. It'll look like this. In appendix is a testmod demonstrating this issue.

(While trying this, I also noticed that the pushers in the example mod don't work at all when added directly to the frame, but that is easily worked around)

Re: [1.0.0] Setting .style.single_line = false on label breaks height calculation

Posted: Thu Sep 10, 2020 4:48 pm
by Klonan
I am afraid the situation is different than you describe:
Image

And I am afraid, that I will move this to pending, as I don't see the behavior as described

Re: [1.0.0] Setting .style.single_line = false on label breaks height calculation

Posted: Thu Sep 10, 2020 6:25 pm
by Therenas
The source of the issue might be wrong, but shouldn't the code I provided properly center the text in the frame?