Corrected right pane resizing