Update viewport.