this makes sure scroll position is reset properly after rotation.