Bug 44544 - CarouselView SelectedCarouselTab does not render correct index
Summary: CarouselView SelectedCarouselTab does not render correct index
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.2
Hardware: Macintosh Mac OS
: High blocker
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-09-20 20:15 UTC by Anuj Bhatia
Modified: 2017-06-19 18:12 UTC (History)
2 users (show)

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

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 NOT_ON_ROADMAP

Description Anuj Bhatia 2016-09-20 20:15:04 UTC
Reproduction

https://www.dropbox.com/s/an3attukkxbphv6/Carousel%20bug.zip.zip?dl=0

Reproduction Instructions:

- while on Tab 0,
- populate the Carousel with around 120 simple controls (Labels) or 40 complex controls (StackLayout with a Label and Entry)
- then click on T3.
 
Result
- rather than showing Carousel page at position 3, you will get position 4.
- You might also notice non smooth scrolling from page to page.
- sometimes if it works, you might see a flash of page 4 before it moves back to page 3
If you try to change pages without reloading the controls, it will work.
 
Repopulate the carousel and you will have the same issue again.
Comment 1 Samantha Houts [MSFT] 2016-12-19 20:11:24 UTC
I tested this reproduction without any changes or updates on a Nexus 10 KitKat and a Nexus 7 Lollipop emulator, but I could not reproduce the behavior described. When I tapped on T3, it scrolled smoothly to the green page labeled "This is Tab 3". I never saw the flash of Page 4.

Can you please elaborate on your test environment? Perhaps the device or emulator makes a difference.
Comment 2 Samantha Houts [MSFT] 2017-06-19 18:12:55 UTC
This issue is not present in the newly proposed version of CarouselView. Closing this issue. Thank you!
	
https://github.com/xamarin/Xamarin.Forms/pull/853