Bug 46345 - Measure and Arrange phases are wrong for a Picker with multi-line.
Summary: Measure and Arrange phases are wrong for a Picker with multi-line.
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.2
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Paul DiPietro [MSFT]
Depends on:
Reported: 2016-11-02 21:07 UTC by Brad Chase
Modified: 2017-06-20 13:50 UTC (History)
3 users (show)

Tags: picker measure
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:

Description Brad Chase 2016-11-02 21:07:23 UTC
To Repro, put a bunch of pickers in separate rows of a grid in a contentview you can reuse.  Put that content view in a new grid with multiple rows all filled with that contentview.

For the selected item of the picker make a multi line string.  We used horizontal fill for ours.

What it causes are the pickers and rows to start going underneath the other controls that are farther down vertically.

TO FIX:  We used a custom render for the Picker control and put in these lines:

                Control.Ellipsize = Android.Text.TextUtils.TruncateAt.End;
Comment 1 Paul DiPietro [MSFT] 2017-03-09 21:28:19 UTC
Are you still experiencing this on the more recent versions of Forms, and if so, could you put together a reproduction project?
Comment 2 Brad Chase 2017-03-09 21:46:38 UTC
Yea when I get time I am going to look at this and some label measuring issues while in a grid.  Just been busy lately.
Comment 3 Paul DiPietro [MSFT] 2017-06-20 13:50:29 UTC
Because we have not received a reproduction, we are closing this issue. If you are still experiencing the problem on the latest prerelease or nightly build, please reopen this with a reproduction project.