OSDN Git Service

Use floor to calculate the range to avoid the rounding error triggered
authorGrace Kloba <klobag@google.com>
Fri, 11 Sep 2009 20:20:39 +0000 (13:20 -0700)
committerGrace Kloba <klobag@google.com>
Fri, 11 Sep 2009 22:07:25 +0000 (15:07 -0700)
commite621d6ffb9602c21e6f6f4f12ac02680a3c78601
tree315b1bada1c5c59254c40063467b4849a56b12eb
parent162ec9993e9695946a6b954fd53eebb63e055540
Use floor to calculate the range to avoid the rounding error triggered
scrollbar. The worst case is that you can never scroll down to the last
pixel. The old special case can cause problem when getViewWidth/Height
have changed which do not match mLastXXSent any more.

Remove FIND_HEIGHT from computeVerticalScrollRange per conversation with Leon.

Change computeMaxScrollY to use computeVerticalScrollRange which matches
how it computes X.

Change onMeasure to use contentToViewDimension() as it has the same logic.
core/java/android/webkit/WebView.java