When you plan to make an application cross-platform you can save a lot of headache when you layout the forms using the Anchor Editor, i.e. when you anchor the top of the second line to the bottom of the first /https://wiki.freepascal.org/Anchor_Sides). This should give you the correct spacing. The overall size of containers then should be determined by setting their AutoSize property to true.