Page 1 of 1

[0.17.57] LuaStyle::horizontal_align does nothing for label

Posted: Tue Jul 16, 2019 3:35 pm
by cogito123
Hi,

The LuaStyle::horizontal_align seems to have no effect on label type of widget. Even if I set it to "center" I still require to add padding manually to center the text.
Label widget is a child of frame element if that helps.

Re: [0.17.57] LuaStyle::horizontal_align does nothing for label

Posted: Tue Jul 16, 2019 3:37 pm
by kovarex
The rule is specified in a way, that label can't stretch more than the text (the reason is related to layouting more complicated things). It is doable probably through putting it into horizontal flow and setting center on the horizontal flow.