From: Kangho Hur Date: Mon, 26 Dec 2016 00:17:33 +0000 (+0900) Subject: Fix TabbedPageRenderer's toolbar height X-Git-Tag: accepted/tizen/common/20170324.122620~99 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edabcdabf5c5a7ea57a0c2e5eaecbab28614a208;p=platform%2Fupstream%2Fxamarin-forms.git Fix TabbedPageRenderer's toolbar height - Applying the ElmSharp.Toolbar bug patch . We don't need to calculate the ratio of toolbar height anymore. Change-Id: Ib286297e3123e1cf344a01f06b8472341ca12598 --- diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs index db97b33..2afacfb 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs @@ -124,19 +124,9 @@ namespace Xamarin.Forms.Platform.Tizen } else { - //elm_toobar style and size hint must be changed at least once before adding the toolbar item having icon. if (!hasIcon) { - int windowHeight = Forms.Context.MainWindow.Geometry.Height; - //This value is from efl-theme-tizen-mobile theme. (NAVIFRAME_TABBAR_HEIGHT_WITH_TITLE_INC 80) - double requiredToolbarHeight = 80.0; - double toolBarWeight = requiredToolbarHeight/windowHeight; _tpage.Style="tabbar"; - _tpage.TransverseExpansion = true; - _tpage.SetAlignment(-1,-1); - _tpage.SetWeight(1, toolBarWeight); - _box.SetAlignment(-1,-1); - _box.SetWeight(1, 1- toolBarWeight); hasIcon = true; } toolbarItem = _tpage.Append(child.Title, ResourcePath.GetPath(child.Icon));