-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 (iOS) #24647
Trigger InvalidateMeasure event on CollectionView when content size changes (iOS) #24647
Conversation
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -403,6 +409,13 @@ await CreateHandlerAndAddToWindow<LayoutHandler>(layout, async handler => | |||
? containerHeight | |||
: Math.Min(itemsCount * templateHeight, containerHeight); | |||
|
|||
#if IOS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this work on Windows and Android?
If it currently doesn't and should, would it make sense to open an issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say: it should work on all platforms.
But apparently it only makes an actual difference on iOS (issue author is only talking about such platform).
I can try to make it work on Android, but I'll need some help for the Windows platform.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More just curious if we should log an issue
If this test currently fails for Android/Windows we can just log an issue saying so and link to it. No need to hold this PR up for Android/Windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, I'll file a new issue then.
(Test is failing there)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done #24672
Description of Change
Problem reported in #21141 has been fixed by #23052 , except for one use case: nested collection view.
The nested
CollectionView
should triggerMeasureInvalidated
but it's not: it is just triggeringSetNeedsLayout
on the native view.This PR adds the event triggering so that the parent
TemplatedCell
can react to it.Issues Fixed
Fixes #21141