add size child compon overal size width maxim child width child height ad overal height child figur visibl size ad param size current dimens param child child figur dimens child size ad dimens add child dimens dimens size fig child child visibl dimens child size child minimum size size width math max size width child size width size height child size height size 