Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

Commit

Permalink
fixed the height calculation of WebView.
Browse files Browse the repository at this point in the history
  • Loading branch information
nagoya0 committed Apr 9, 2012
1 parent 0dac2e6 commit 35a3dce
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -72,6 +72,7 @@ protected boolean isReadyForPullDown() {

@Override
protected boolean isReadyForPullUp() {
return mRefreshableView.getScrollY() >= (mRefreshableView.getContentHeight() - mRefreshableView.getHeight());
int exactContentHeight = (int) Math.floor(mRefreshableView.getContentHeight() * mRefreshableView.getScale());
return mRefreshableView.getScrollY() >= (exactContentHeight - mRefreshableView.getHeight());
}
}

0 comments on commit 35a3dce

Please sign in to comment.