Closed darzul closed 8 years ago
Nice. So it's only refactoring, right? I'd name the new function differently thought. Maybe "updateBubbleAndHandlePosition". When having a "set", this prefix is usually for setters.
Yes it is. You're right, it's fixed :)
ok then. thanks for helping.
There were two places in the code to compute the scrolling position. As it is the same code I factorized it in a method ->
setBubbleAndHandlePosition()
In this PR the
ViewTreeObserver
onRecyclerView
is replaced by a call tosetBubbleAndHandlePosition()
inonSizeChanged()
. When theRecyclerViewFastScroller
size changes we have to compute the newhandle
position.What do you think about these changes ?