Skip to content
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

CarouselView position is not correct on iOS when ItemsSource contains only 1 item #12425

Open
tranb3r opened this issue Jan 5, 2023 · 5 comments
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView delighter-sc migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with platform/iOS 🍎 s/triaged Issue has been reviewed t/bug Something isn't working
Milestone

Comments

@tranb3r
Copy link

tranb3r commented Jan 5, 2023

Description

CarouselView position is not correct on iOS when ItemsSource contains only 1 item.
After scrolling the CarsouelView a few times, suddenly the position is adjusted and it becomes correct.
No issue when there are more than 1 item in the ItemsSource.
No issue on Android.

On my repro: the blue box should be a square ; at first, it's hidden behind the header label ; then it moves to its correct position below the header.

Steps to Reproduce

  1. Create a maui app for Android and iOS
  2. On the MainPage, add a Grid with 2 rows: Label and CarsouselView (with 1 item)
  3. Observe the position of the CarouselView, on app open, and after scrolling the CarouselView a few times

Link to public reproduction project repository

https://github.com/tranb3r/Issues/tree/main/MauiAppCarouselView

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 16.1

Did you find any workaround?

no

Relevant log output

No response

@tranb3r tranb3r added the t/bug Something isn't working label Jan 5, 2023
@Eilon Eilon added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Jan 5, 2023
@rachelkang rachelkang added this to the Backlog milestone Jan 5, 2023
@ghost
Copy link

ghost commented Jan 5, 2023

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@ertandk
Copy link

ertandk commented Jan 23, 2023

Any progress on this issue? I'm getting the same error.

@jinxinjuan jinxinjuan added s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version labels Jun 8, 2023
@jinxinjuan
Copy link

Verified this issue with Visual Studio Enterprise 17.7.0 Preview 1.0. Not repro on iOS platform with sample project.
MauiAppCarouselView

@ghost
Copy link

ghost commented Jun 8, 2023

Hi @tranb3r. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@tranb3r
Copy link
Author

tranb3r commented Jun 8, 2023

I've just tested my sample project with visual studio 17.7.0 preview-1.
I can still reproduce this issue.
@jinxinjuan Could you please double check? Thanks

@ghost ghost removed the s/try-latest-version Please try to reproduce the potential issue on the latest public version label Jun 8, 2023
@samhouts samhouts added partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert labels May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView delighter-sc migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with platform/iOS 🍎 s/triaged Issue has been reviewed t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants