Move viewport correctly