Implementation of layout width and height of child elements