Using scrollView.height instead of windows.height to calculate dismiss animation