Skip to content

Instantly share code, notes, and snippets.

@rupertbates
Last active December 25, 2016 08:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rupertbates/5221687 to your computer and use it in GitHub Desktop.
Save rupertbates/5221687 to your computer and use it in GitHub Desktop.
Work out the maximum scroll extent of an Android WebView
int maxScrollExtent = (int) ((mOverlayTop.getContentHeight() * mOverlayTop.getScale()) - mOverlayTop.getHeight());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment