diff options
author | rina6350.you <rina6350.you@samsung.com> | 2016-11-25 15:40:32 +0900 |
---|---|---|
committer | rina6350.you <rina6350.you@samsung.com> | 2016-11-25 15:40:32 +0900 |
commit | b5fe1627f59ab33f636a9afe39ae1f15ff2951b7 (patch) | |
tree | 8d3d4b4bf9433c46394e674ed90e38274418b790 | |
parent | 317a2de01f5eefb3bd986d04503397d64fc74bd0 (diff) | |
download | xamarin-forms-b5fe1627f59ab33f636a9afe39ae1f15ff2951b7.tar.gz xamarin-forms-b5fe1627f59ab33f636a9afe39ae1f15ff2951b7.tar.bz2 xamarin-forms-b5fe1627f59ab33f636a9afe39ae1f15ff2951b7.zip |
Fix the issue that layout of Header and Footer in ListView doesn't work properly
TASK=TCAPI-2049
Change-Id: I805c85ba9adbbbd88bb317fbd5789889b480e9a3
-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 a2bf2be2..c3146cfa 100644..100755 --- a/Xamarin.Forms.Platform.Tizen/Native/ListView.cs +++ b/Xamarin.Forms.Platform.Tizen/Native/ListView.cs @@ -612,7 +612,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; } }; |