Skip to content

Fix issue with Carousel's containerWidth being reset #1769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2022

Conversation

ethanshar
Copy link
Collaborator

Description

We found a rare issue where the Carousel component re-trigger an onLayout event (when being rendered inside a TabController page).
The second onLayout event has containerWidth of 0 which break the functionality of Carousel's snapToOffsets feature.
**This issue only happen on Android! **

MMV-232

Changelog

Fix rare issue with Carousel on Android that can cause an exception

@ethanshar ethanshar requested a review from M-i-k-e-l January 9, 2022 16:46
@ethanshar ethanshar added the hotfix Requires a hotfix release label Jan 9, 2022
@ethanshar ethanshar merged commit 1fbb409 into master Jan 9, 2022
@ethanshar ethanshar deleted the fix/CarouselContainerWidthResetIssue branch April 18, 2022 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotfix Requires a hotfix release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants