summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2016-11-28 15:21:54 +0900
committerGerrit Code Review <gerrit@s001>2016-11-28 15:21:54 +0900
commitc7105c914e0f05cfea64be10980fd38676448d2d (patch)
treecf343cc0355d2453809a0ee0b0daa4b6555b006c
parent12f157846b0a00e5fdd9916e155b81fc71da542a (diff)
parentb5fe1627f59ab33f636a9afe39ae1f15ff2951b7 (diff)
downloadxamarin-forms-c7105c914e0f05cfea64be10980fd38676448d2d.tar.gz
xamarin-forms-c7105c914e0f05cfea64be10980fd38676448d2d.tar.bz2
xamarin-forms-c7105c914e0f05cfea64be10980fd38676448d2d.zip
Merge "Fix the issue that layout of Header and Footer in ListView doesn't work properly" into devel/dotnet
-rwxr-xr-x[-rw-r--r--]Xamarin.Forms.Platform.Tizen/Native/ListView.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/ListView.cs b/Xamarin.Forms.Platform.Tizen/Native/ListView.cs
index edf8300f..5b720d7d 100644..100755
--- a/Xamarin.Forms.Platform.Tizen/Native/ListView.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/ListView.cs
@@ -586,7 +586,17 @@ namespace Xamarin.Forms.Platform.Tizen.Native
{
VisualElement element = data as VisualElement;
var renderer = Platform.GetOrCreateRenderer(element);
- renderer.NativeView.MinimumHeight = (int)element.MinimumHeightRequest;
+
+ if (element.MinimumHeightRequest == -1)
+ {
+ SizeRequest request = element.Measure(double.PositiveInfinity, double.PositiveInfinity);
+ renderer.NativeView.MinimumHeight = (int)request.Request.Height;
+ }
+ else
+ {
+ renderer.NativeView.MinimumHeight = (int)element.MinimumHeightRequest;
+ }
+
return renderer.NativeView;
}
};