using view height instead of screen height