Skip to content

Fixes footer position not updated on CV1 when clearing all items #29173

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

Merged
merged 2 commits into from
May 1, 2025

Conversation

albyrock87
Copy link
Contributor

@albyrock87 albyrock87 commented Apr 24, 2025

Description of Change

Now that #28479 prevents the invalidation to propagate up the collection view when a cell has fixed constraints, there was nothing triggering re-layout of CV1 footer while unbinding cells.

This PR marks the CV to be updated when we unbind a cell.

Issues Fixed

Fixes #29137

@albyrock87 albyrock87 requested a review from a team as a code owner April 24, 2025 13:04
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Apr 24, 2025
Copy link
Contributor

Hey there @@albyrock87! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@rmarinho
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

rmarinho
rmarinho previously approved these changes Apr 24, 2025
@rmarinho rmarinho added this to the .NET 9 SR7 milestone Apr 24, 2025
@samhouts samhouts added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Apr 24, 2025

// Now let's add items until the footer goes out of the screen
// and then remove them all and verify the footer is visible again (#29137)
var add2Items = App.WaitForElement("Add 2 Items");
Copy link
Contributor

@bhavanesh2001 bhavanesh2001 Apr 25, 2025

Choose a reason for hiding this comment

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

Test fails on Android. The exception suggests that the footer might be getting re-rendered/removed/out of screen when items are added.

https://dev.azure.com/xamarin/public/_build/results?buildId=140753&view=ms.vss-test-web.build-test-results-tab&runId=4068405&resultId=100150&paneView=debug

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bhavanesh2001 yeah, thanks, I've fixed the UITest and made it more reliable.

@PureWeen
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jfversluis jfversluis added the p/0 Work that we can't release without label Apr 30, 2025
@jfversluis jfversluis moved this from Todo to Ready To Review in MAUI SDK Ongoing Apr 30, 2025
@github-project-automation github-project-automation bot moved this from Ready To Review to Approved in MAUI SDK Ongoing Apr 30, 2025
@PureWeen PureWeen merged commit c8c724d into dotnet:main May 1, 2025
130 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in MAUI SDK Ongoing May 1, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jun 1, 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 p/0 Work that we can't release without
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

I8_Header_and_Footer - Missing footer after clicking 'Clear All Items' button.
6 participants