summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2016-12-26 09:17:33 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-04-24 13:36:44 +0900
commitc63f8a7ba0c160c30febe569517803c76948f409 (patch)
treece034382c3dfd2845c2e731b2e0f7f74cf000dc2 /Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs
parente66df4af510475dfab1fd61f3cf30cf96f2ce558 (diff)
downloadxamarin-forms-c63f8a7ba0c160c30febe569517803c76948f409.tar.gz
xamarin-forms-c63f8a7ba0c160c30febe569517803c76948f409.tar.bz2
xamarin-forms-c63f8a7ba0c160c30febe569517803c76948f409.zip
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
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs10
1 files changed, 0 insertions, 10 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs
index db97b339..2afacfbd 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));