Bug 42230 - CarouselView Moves to First item on Rotation (iOS)
Summary: CarouselView Moves to First item on Rotation (iOS)
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-06-29 07:56 UTC by FieldstrikeMobile
Modified: 2017-05-10 14:03 UTC (History)
4 users (show)

Tags: bug, ios, carouselview
Is this bug a regression?: ---
Last known good build:


Attachments
Repo Case (61.28 KB, application/x-zip-compressed)
2016-06-29 07:56 UTC, FieldstrikeMobile
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description FieldstrikeMobile 2016-06-29 07:56:24 UTC
Created attachment 16515 [details]
Repo Case

We have a carousel View

1. Navigate to the Second item in the carousel View
2. rotate the device.

Bug!

Carousel view now shows you item number one.

This only happens on iOS
Comment 1 Reinier 2017-02-21 11:23:17 UTC
This also happens when navigating away with Navigation.PushAsync.
Comment 2 Jimmy [MSFT] 2017-03-08 18:12:25 UTC
I was able to reproduce this issue with the attached project and I am confirming the report so the team can investigate further.


### Steps to reproduce
1. Run the iOS project
2. Swipe over to the second item
3. Rotate the device/sim


### Expected Results
The second item will remain the screen.


### Actual Results
The CarouselView resets to the first item.


### Other Observations
The issue seems to only happen when going from portrait to landscape. If you are in landscape and on the second item, rotating the screen will not change the current item. Once in portrait though, rotating the screen back to landscape will cause the bug.


### Version Tests
- Forms.CarouselView 2.3.0-pre1     BAD
- Forms.CarouselView 2.3.0-pre2     BAD
Comment 3 FieldstrikeMobile 2017-03-09 08:49:42 UTC
Think this is the fix for this issue:

https://github.com/xamarin/Xamarin.Forms.CarouselView/pull/9
Comment 4 FieldstrikeMobile 2017-05-10 14:03:14 UTC
Fixed in new Carousel that is in the process of being merged:

https://github.com/xamarin/Xamarin.Forms/pull/853