Viewport width and height readjustments being calculated