scale the viewport correctly