Support horizontal alignment of components inside a container

[#44640123]