Skip to content

Comments

Added refreshing bar height in onLayout#71

Open
marcin-adamczewski wants to merge 1 commit intodanoz73:masterfrom
marcin-adamczewski:refreshing-bar-height-in-calculators
Open

Added refreshing bar height in onLayout#71
marcin-adamczewski wants to merge 1 commit intodanoz73:masterfrom
marcin-adamczewski:refreshing-bar-height-in-calculators

Conversation

@marcin-adamczewski
Copy link

Hi ! There was an issue in our project that sometimes we weren't able to move bar handle to
the bottom of the bar. I discovered it was caused by "onCreateScrollProgressCalculator" method
which is called only once in onLayout method, but bar height was changing in subsequent onLayout calls. That caused VerticalScrollProgressCalculator and VerticalScreenPositionCalculator to use wrong bar height.

I broke your immutable VerticalScrollBoundsProvider class so it have update method now. IMHO it is better solution for view efficiency than creating new objects in on layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant