Components size is wrongly calcucated

I think it is related to the align property and child-parent relationship. Can you add a dependency so that a child element can't be wider than its parent? If I'm not mistaken, you have a mechanism for calculating the size of components.