Layout correctly resizes components based on actual dimensions of the window they are in. Reviewed-by: gsm