Fixed getViewportRect() calculation of top-left/bottom-right coordinates.