summaryrefslogtreecommitdiff
path: root/libs/ui/SharedBufferStack.cpp
diff options
context:
space:
mode:
author Grace Kloba <klobag@google.com> 2009-09-11 13:20:39 -0700
committer Grace Kloba <klobag@google.com> 2009-09-11 15:07:25 -0700
commite621d6ffb9602c21e6f6f4f12ac02680a3c78601 (patch)
tree315b1bada1c5c59254c40063467b4849a56b12eb /libs/ui/SharedBufferStack.cpp
parent162ec9993e9695946a6b954fd53eebb63e055540 (diff)
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.
Diffstat (limited to 'libs/ui/SharedBufferStack.cpp')
0 files changed, 0 insertions, 0 deletions