Updated the viewport.