Bug 52256 - ListView ignores padding when cell contains string with NewLines
Summary: ListView ignores padding when cell contains string with NewLines
Status: RESOLVED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.3
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-02-02 16:56 UTC by Paul Brenner
Modified: 2017-06-21 14:48 UTC (History)
5 users (show)

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


Attachments
Sample showing issue (595.30 KB, application/zip)
2017-02-02 16:56 UTC, Paul Brenner
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 ANSWERED

Description Paul Brenner 2017-02-02 16:56:34 UTC
Created attachment 19701 [details]
Sample showing issue

When using a ListView, if a label has text that contains newlines, we get different behavior on each platform.

On iOs: The cell doesn’t expand, it ignores the bottom padding set, and the last item is cut at the bottom of the cell.
On Android: The cell doesn’t expand, it keeps the bottom padding, and removes part of the string that won’t fit.
On Windows UWP: The Cell expands to fit the entire string, and keeps the bottom padding

Note that if HasUnevenRows is set to TRUE, on all platforms the cell will expand and show the full string, and keep the bottom padding.

Is this the expected behavior when a ListView contains a cell with a label that has a string containing newlines?

This was tested on the latest version (2.3.3.180) as well as the latest preview version (2.3.4.184).
Comment 3 David Ortinau [MSFT] 2017-06-21 14:48:30 UTC
This is the expected behavior.