CarouselView content calls SizeChanged forever with certain parent view/display resolution combinations #22363
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
platform/android 🤖
t/bug
Something isn't working
Milestone
Description
With the following View Hierarchy:
The
Grid
will invoke theSizeChanged
event forever, with the height fluctuating by ~1 pixel each time.Check the "Relevant log output" section for the observed log output from the repro.
This appears to be somewhat dependent on the display resolution of the device, as I have only managed to reproduce the issue on devices with resolutions of 1920x1080 and 1080x1920 so far.
The view is still responsive when this happens: this isn't a hang/softlock etc.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/sjordanGSS/carouselview-test
Version with bug
8.0.21 SR4.1
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
Reproduced locally on Android 11 and 13
Did you find any workaround?
Removing the
ContentView
from the hierarchy resolves the issue (interestingly, doing so also reduces the number of timesSizeChanged
is invoked by theCarouselView
from 2 to 1), however this prevents the use ofContentView
-derived controls to wrap theCarouselView
e.g. Maui.CommunityToolkit'sLazyView
Relevant log output
The text was updated successfully, but these errors were encountered: