Update viewport size and display.