(re)stores the size and position of the main frame