I am creating a custom component that extends SkinnableContainer. I can focus the content vertically or horizontally inside it, but not both, and this is what I need.
I set the layout to HorizontalLayout for the component and set the verticalAlign to medium.
Then I create a canvas to surround another component that is included in this component, and set the canvas width to 100%, and then set textAlign = center, but not cubes.
Any help is appreciated.
flex alignment layout center components
ruedaminute
source share