Bug 31974 - ScrollLayout on Windows often gets height slightly under required figure, so cannot scroll all content into view
Summary: ScrollLayout on Windows often gets height slightly under required figure, so ...
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 1.4.3
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-07-15 12:00 UTC by John Hardman
Modified: 2017-06-19 14:18 UTC (History)
5 users (show)

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


Attachments
Sample that demonstrates problem (22.11 KB, text/plain)
2015-07-31 07:20 UTC, John Hardman
Details
Screenshot showing problem (282.66 KB, image/png)
2016-03-23 10:50 UTC, John Hardman
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 John Hardman 2015-07-15 12:00:30 UTC
Running on Windows, ScrollLayout with vertical orientation often does not allow all of the content to be scrolled into view. It seems that the height calculation is missing something, so the last items in the scroll layout cannot be scrolled into sight.
Comment 1 John Hardman 2015-07-31 07:20:23 UTC
Created attachment 12315 [details]
Sample that demonstrates problem

I've attached a sample. To keep it short, I've cut down the number of items nested inside the ScrollLayout. This changes the user experience of the problem slightly, but the underlying issue is the same - that despite using Expand on the vertical options of the nested controls, the overall dimension of the data that should be scrollable does not seem to be conveyed all the way up the hierarchy. With the limited number of items, this results in clipping of the data. If the number of items is increased, it prevents scrolling to the end of the items.
Comment 2 John Miller [MSFT] 2016-01-04 16:55:21 UTC
@John,

I am not understanding what the expected behavior for the sample code is. Could you help by doing the following:

1. Confirm this is still an issue with Xamarin.Forms 2.0
2. Provide the steps to reproduce the behavior
3. Attach a screenshot of what you are seeing and explain what the expected behavior is. 

I'll take a look and see if I might be missing something once you can provide these details. 

Thanks!
Comment 3 John Hardman 2016-03-23 10:50:13 UTC
Created attachment 15494 [details]
Screenshot showing problem

Please find attached screenshot showing problem still occurring on 2.1.0.6529 

This screenshot is from a UWP build.
Comment 4 John Hardman 2016-03-23 10:51:58 UTC
Changing status to NEW again after adding new attachment.
Comment 5 Jason Smith [MSFT] 2016-04-11 07:26:50 UTC
2.2.0 contains several fixes around ScrollView layout in Windows in particular. You can try testing this fixes or we will get around to it soon.