Fix sizing in viewer pane