Correct size and position of panel.