Fixed resizing logic of preview pane in settings dialog