revert to using getViewport but check that top value is positive