CollectionView causes invalid measurements on Android rotation #21967
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
partner/cat 😻
Client CAT Team
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
See attached githib for repo project.
When running the attached Android app on a simulator. The page initially looks correct. (Click Load)
After rotation however, the second row is displayed incorrectly.
In addition, in the debug output you can see some incorrect measure values of 390451572 x 390451572
And sometimes, after rotation, the app gets caught in a continuous Measure / Layout sequence that only stops when you rotate back to the original orientation.
Using Nightly - 8.0.40-nightly.10515
Steps to Reproduce
Link to public reproduction project repository
https://github.com/jump32/maui-app-collection-view-issue
Version with bug
Nightly / CI build (Please specify exact version)
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
It is possible that switching the Collection View to
ItemSizingStrategy="MeasureAllItems"
.Possible. But highly undesirable.
Relevant log output
The text was updated successfully, but these errors were encountered: