diff options
author | Seungkeun Lee <sngn.lee@samsung.com> | 2016-11-28 15:21:54 +0900 |
---|---|---|
committer | Gerrit Code Review <gerrit@s001> | 2016-11-28 15:21:54 +0900 |
commit | c7105c914e0f05cfea64be10980fd38676448d2d (patch) | |
tree | cf343cc0355d2453809a0ee0b0daa4b6555b006c | |
parent | 12f157846b0a00e5fdd9916e155b81fc71da542a (diff) | |
parent | b5fe1627f59ab33f636a9afe39ae1f15ff2951b7 (diff) | |
download | xamarin-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.cs | 12 |
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; } }; |