You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I have a VerticalLayout, and some elements within it. I'd like to centre the items horizontally, but from what I see that requires either:
wrapping each element in a HorizontalLayout and giving it align: center;
setting x: parent.width / 2 - self.width / 2;
Is there a better way to do it? If not, are there any plans to adding an alignment property for the other axis, like flexbox with justify-content and align-items?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi. I have a
VerticalLayout
, and some elements within it. I'd like to centre the items horizontally, but from what I see that requires either:HorizontalLayout
and giving italign: center;
x: parent.width / 2 - self.width / 2;
Is there a better way to do it? If not, are there any plans to adding an alignment property for the other axis, like flexbox with
justify-content
andalign-items
?Beta Was this translation helpful? Give feedback.
All reactions