Skip to content

Fixed CarouselView Loop="False" rendering items incorrectly#25545

Merged
rmarinho merged 2 commits intodotnet:mainfrom
kubaflo:fix-25192
Nov 18, 2024
Merged

Fixed CarouselView Loop="False" rendering items incorrectly#25545
rmarinho merged 2 commits intodotnet:mainfrom
kubaflo:fix-25192

Conversation

@kubaflo
Copy link
Copy Markdown
Contributor

@kubaflo kubaflo commented Oct 28, 2024

Issues Fixed

Fixes #25192

Before After

@kubaflo kubaflo requested a review from a team as a code owner October 28, 2024 00:16
@kubaflo kubaflo requested review from Eilon and jfversluis October 28, 2024 00:16
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

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

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Oct 28, 2024
protected override void OnMeasure(int widthMeasureSpec, int heightMeasureSpec)
{
if (Carousel.Loop)
// If the height or width are unbounded and the user is set to
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I only removed the if (Carousel.Loop) condition but indentation changes make it harder to spot

@kubaflo kubaflo added platform/android area-controls-collectionview CollectionView, CarouselView, IndicatorView labels Oct 28, 2024
@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run

@jsuarezruiz jsuarezruiz requested review from rmarinho and removed request for Eilon October 28, 2024 06:55
@rmarinho
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Copy Markdown
Contributor

@rmarinho Thoughts?

@rmarinho
Copy link
Copy Markdown
Member

Seems this was failing UITests when rebased on main, so I added to revert.

The iOS seems not to render the next item, or the padding is different.

image

@kubaflo
Copy link
Copy Markdown
Contributor Author

kubaflo commented Nov 18, 2024

Seems this was failing UITests when rebased on main, so I added to revert.

The iOS seems not to render the next item, or the padding is different.

image

@rmarinho ah I see sorry!
Item spacing was not working on iOS at the time of adding snapshot. The CarouselView2 for iOS fixed it, so I've updated the iOS screenshot to fix UI test

I created this PR with a correct screenshot: #25924

@samhouts samhouts added fixed-in-9.0.21 fixed-in-net8.0-nightly This may be available in a nightly release! labels Dec 16, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 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 fixed-in-9.0.21 fixed-in-net8.0-nightly This may be available in a nightly release! platform/android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CarouselView Loop="False" renders incorrectly items ( net8, net9 rc2)

4 participants