Skip to content

Conversation

kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Mar 15, 2025

Description of Change

I think that because of this PR #20154 this override of OnIsVisibleChanged can be removed, which would improve the performance of Compatibility.Layout

Issues Fixed

Fixes #28415

@kubaflo kubaflo requested a review from a team as a code owner March 15, 2025 11:55
@kubaflo kubaflo changed the title CollectionView display is broken when setting IsVisible after items are added -Fix CollectionView display is broken when setting IsVisible after items are added - Fix Mar 15, 2025
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Mar 15, 2025
@kubaflo kubaflo self-assigned this Mar 15, 2025
@rmarinho
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Contributor

@jsuarezruiz jsuarezruiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Android, also these tests:
image

Are failing with a crash:
The app was expected to be running still, investigate as possible crash

Could you review if are related with the changes?

[Test]
[Category(UITestCategories.IsVisible)]
[Category(UITestCategories.CollectionView)]
public void CollectionViewItemsShouldBeVisible()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test is failing on Windows:
The app was expected to be running still, investigate as possible crash
Seems is crashing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please /azp again?

@jsuarezruiz jsuarezruiz added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Mar 17, 2025
@@ -591,18 +591,6 @@ private protected virtual void InvalidateMeasureLegacy(InvalidationTrigger trigg
}
}

internal override void OnIsVisibleChanged(bool oldValue, bool newValue)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have tests related to this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about it. I hoped that the current uI tests would be enough to catch a potential regression

@kubaflo
Copy link
Contributor Author

kubaflo commented Mar 18, 2025

On Android, also these tests: image

Are failing with a crash: The app was expected to be running still, investigate as possible crash

Could you review if are related with the changes?

Ther are passing locally so these seem to still be flaky #27905

@mattleibow
Copy link
Member

It has been many moons, but is this PR still needed? the issue #28415 is closed now.

@kubaflo kubaflo closed this Jun 12, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jul 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView community ✨ Community Contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[9.0.50] CollectionView display is broken when setting IsVisible after items are added
5 participants