Modification to calculation of child width in order to support variable ...

...width child elements