Bug 33605 - Android label caps at 100 lines of text
Summary: Android label caps at 100 lines of text
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 1.5.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-09-03 11:27 UTC by Paul DiPietro [MSFT]
Modified: 2016-04-13 18:15 UTC (History)
2 users (show)

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

Reproduction Project (215.76 KB, application/zip)
2015-09-03 11:38 UTC, Paul DiPietro [MSFT]

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 Paul DiPietro [MSFT] 2015-09-03 11:27:41 UTC
When running a Forms-based Android application, labels will cap out at 100 lines of text. This does not occur in iOS, nor does it occur in a Xamarin.Android implementation.

A sample project will be attached shortly.
Comment 1 Paul DiPietro [MSFT] 2015-09-03 11:38:58 UTC
Created attachment 12735 [details]
Reproduction Project
Comment 3 Michael 2015-09-07 10:24:44 UTC
A workaround exists if a custom renderer is made and we use 'SetMaxLines' on the Control like below:

protected override void OnElementChanged (ElementChangedEventArgs<Label> e)
	base.OnElementChanged (e);

	if (e.NewElement != null) {

I have verified this works on my LG Nexus 5 running 5.1.