[0.17.57] LuaStyle::horizontal_align does nothing for label

Bugs that are actually features.
Post Reply
cogito123
Inserter
Inserter
Posts: 23
Joined: Thu Feb 28, 2019 7:05 pm
Contact:

[0.17.57] LuaStyle::horizontal_align does nothing for label

Post 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.

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

Post 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.

Post Reply

Return to “Not a bug”