Skip to content
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

Trigger InvalidateMeasure event on CollectionView when content size changes (Windows and Android) #24672

Open
albyrock87 opened this issue Sep 9, 2024 · 3 comments
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/android 🤖 platform/windows 🪟 t/bug Something isn't working
Milestone

Comments

@albyrock87
Copy link
Contributor

Description

When CollectionView is configured as *Options != Fill the DesiredSize depends on content size.
When content size changes InvalidateMeasure should be triggered to notify parent views/layout about changes in the desired size.

#24647 introduces such behavior on iOS to fix #21141 on iOS but the behavior should be consistent on all platforms.

Steps to Reproduce

Run device test CollectionViewCanSizeToContent by removing the #if IOS compilation flag introduced in #24647 and observe it fails on platforms other than iOS.

Link to public reproduction project repository

No response

Version with bug

8.0.82 SR8.2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android, Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

Copy link
Contributor

github-actions bot commented Sep 9, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@ninachen03
Copy link

Could you provide us with a sample project so we can investigate it further? Looking forward to your reply!

@albyrock87
Copy link
Contributor Author

@ninachen03 I've been asked to file this issue here: https://github.com/dotnet/maui/pull/24647/files#r1749332288

The second ZIP here contains a sample which generated this situation :)

@mattleibow mattleibow added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Sep 10, 2024
@mattleibow mattleibow added this to the Backlog milestone Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/android 🤖 platform/windows 🪟 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants