Hide scrollbars and corner when pane is not visible