Viewport cleanup after resize and toggling rulers.