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)
[1.0.0] Setting .style.single_line = false on label breaks height calculation
[1.0.0] Setting .style.single_line = false on label breaks height calculation
- Attachments
-
- testmod.zip
- (1.07 KiB) Downloaded 90 times
Re: [1.0.0] Setting .style.single_line = false on label breaks height calculation
I am afraid the situation is different than you describe:
And I am afraid, that I will move this to pending, as I don't see the behavior as described
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
The source of the issue might be wrong, but shouldn't the code I provided properly center the text in the frame?