Close panels and scroll to the open panel.