Fixed layout in settings when resizing the window