Skip to content

[Bug] iOS: CollectionView items don't change their size when item content size is changed #25650

@PureWeen

Description

@PureWeen

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

No one assigned

    Labels

    area-controls-collectionviewCollectionView, CarouselView, IndicatorViewi/regressionThis issue described a confirmed regression on a currently supported versionp/0Current heighest priority issues that we are targeting for a release.partner/syncfusionIssues / PR's with Syncfusion collaborationplatform/iosregressed-in-9.0.0s/triagedIssue has been reviewed

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions