summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2016-12-28 07:13:08 (GMT)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2016-12-28 07:13:08 (GMT)
commitf6b02fa036f3b5aa2ba3a40f787ffa54ef40f2f4 (patch)
tree85574b6a08e6ff13b040e0605335215bbd7a62eb
parent22745695719b61b55d97cd47dbaeaffca6a063b7 (diff)
parent1d2017738f2650a21774610cdf6a385091db6a35 (diff)
downloadxamarin-forms-f6b02fa036f3b5aa2ba3a40f787ffa54ef40f2f4.zip
xamarin-forms-f6b02fa036f3b5aa2ba3a40f787ffa54ef40f2f4.tar.gz
xamarin-forms-f6b02fa036f3b5aa2ba3a40f787ffa54ef40f2f4.tar.bz2
Merge "Fix TabbedPageRenderer's toolbar height" into tizen
-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 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));