-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Description
#3643 regressed between net8 and net9
When testing make sure to remove the code in MauiProgram on the host app that uses the CollectionView2 Handlers
#23746 caused the regression
The problem right now is that the code inside CV that listens to "MeasureInvalidated" is order dependent.
- In NET8 the order of events on most controls would go
Things changes on Controls => MEasureInvalidated fires => CV immediately doesn't a remeasure and uses this for the height
- in NET9 the order changed to
MEasureInvalidated fires => Things changes on Controls => CV immediately doesn't a remeasure and uses this for the height
My guess is that this code has always been somewhat brittle.
- How this should work is
Things change on Controls => Something indicates to the CV "Hey the content of this cell probably changed measure you should signal that it needs a layout pass" => now a layout pass is scheduled and the cell is remeasured.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status