Fixed bug in display of right pane when scrollbar appears