compute Y scroll max by scaling only, ignoring title bar height

without this, the max scroll may be a single pixel
This commit is contained in:
Cary Clark
2009-09-15 12:47:39 -04:00
parent 5adeba4b7f
commit df344375a9

View File

@@ -5772,7 +5772,7 @@ public class WebView extends AbsoluteLayout
// FIXME the divisor should be retrieved from somewhere
// the closest thing today is hard-coded into ScrollView.java
// (from ScrollView.java, line 363) int maxJump = height/2;
return viewToContentY(height);
return Math.round(height * mInvActualScale);
}
/**