Bug 40588 - Tap status bar to scroll to top not working for MasterDetail
Summary: Tap status bar to scroll to top not working for MasterDetail
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.2.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-04-21 07:03 UTC by Tim Brand
Modified: 2016-05-23 23:24 UTC (History)
2 users (show)

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


Attachments
Solution to reproduce (16.91 KB, application/zip)
2016-04-29 08:01 UTC, Tim Brand
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 Tim Brand 2016-04-21 07:03:53 UTC
When the Master view of the MasterDetail view contains a ScrollView as Content, the tap statusbar to scroll the listview to top doesn't work anymore on the Detail page. In fact it's only working on the Masterpage.

So, the tap to scroll to top should work on the Detail page instead of the Master page, if Masterpage contains a scrollview.

Also tested on latest pre-release: XF 2.2.0.18.pre-3
Comment 1 Samantha Houts [MSFT] 2016-04-24 21:32:05 UTC
Thank you for taking the time to submit the bug. We tried to reproduce the issue you reported but were unable given the description. If you could please attach a reproduction to the bug by starting with a clean Xamarin.Forms project and adding just the code necessary to demonstrate the issue, we would very much appreciate it. 

For your convenience, we have created some reproduction best practices viewable here: https://gist.github.com/jassmith/92405c300e54a01dcc6d

Warm regards,
Xamarin Forms Team
Comment 2 Tim Brand 2016-04-29 08:01:34 UTC
Created attachment 15869 [details]
Solution to reproduce

Hereby the project to reproduce the issue.
Now I found that the MasterPage neither did scroll when tapping the status-bar.

I've implemented 3 cases to show the difference in behavior.
Comment 3 Tim Brand 2016-04-29 08:03:23 UTC
- changed status back to new;
Comment 4 Samantha Houts [MSFT] 2016-05-23 23:24:41 UTC
Thank you for your reproduction!

This is a limitation of the iOS platform. Only one ScrollView/ListView/TableView (or any other control inheriting from UIScrollView or its subclasses) can scroll to top on status bar tap. If there are more than one of these views on screen, this functionality is disabled by the platform. Thus, this behavior is expected.

You may consider creating a custom renderer for your master page that extends the ScrollViewRenderer and sets the ScrollsToTop property to false OnElementChanged.

Let us know if this does not resolve your issue. Thank you!