documentVisibleRect correction