Calling collapsePane() shouldn't show the pane if it is hidden.