summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/ListView.cs
diff options
context:
space:
mode:
authorRui Marinho <me@ruimarinho.net>2016-06-16 17:58:24 +0100
committerJason Smith <jason.smith@xamarin.com>2016-06-16 09:58:24 -0700
commit122a1f2a4028d7359774f5f4987c51dc3573c5d6 (patch)
tree61a3c8f63573a28ab2ec6b682c56d89337e0a46b /Xamarin.Forms.Core/ListView.cs
parent9df4d9c3285952d8ff3ff7940457f44f35a34f81 (diff)
downloadxamarin-forms-122a1f2a4028d7359774f5f4987c51dc3573c5d6.tar.gz
xamarin-forms-122a1f2a4028d7359774f5f4987c51dc3573c5d6.tar.bz2
xamarin-forms-122a1f2a4028d7359774f5f4987c51dc3573c5d6.zip
[Core] Don't use the fixed LayoutConstraint when using uneven rows (#213)
Diffstat (limited to 'Xamarin.Forms.Core/ListView.cs')
-rw-r--r--Xamarin.Forms.Core/ListView.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/ListView.cs b/Xamarin.Forms.Core/ListView.cs
index 3d29033a..71feea68 100644
--- a/Xamarin.Forms.Core/ListView.cs
+++ b/Xamarin.Forms.Core/ListView.cs
@@ -329,7 +329,11 @@ namespace Xamarin.Forms
protected override void SetupContent(Cell content, int index)
{
base.SetupContent(content, index);
+ var viewCell = content as ViewCell;
+ if (viewCell != null && viewCell.View != null && HasUnevenRows)
+ viewCell.View.ComputedConstraint = LayoutConstraint.None;
content.Parent = this;
+
}
protected override void UnhookContent(Cell content)