summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-01-23 20:55:50 -0800
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2017-01-23 20:55:50 -0800
commita3a45e41492b573457bb077e571b21ac531a05bd (patch)
tree958eac6acbbe96b10d983fe07acb937174e3d4ee
parent5cf9fd44e31da5117095575c6bcfb3dd67fea153 (diff)
parentb7e44a581530e0f87b301836782827c5cace10e9 (diff)
downloadxamarin-forms-a3a45e41492b573457bb077e571b21ac531a05bd.tar.gz
xamarin-forms-a3a45e41492b573457bb077e571b21ac531a05bd.tar.bz2
xamarin-forms-a3a45e41492b573457bb077e571b21ac531a05bd.zip
Merge "Fixd Label.HorizontalTextAlignment issue" into tizen
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs
index 5aa8f780..9f4157ed 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs
@@ -62,6 +62,7 @@ namespace Xamarin.Forms.Platform.Tizen
nativeSpan.FontFamily = span.FontFamily;
nativeSpan.FontSize = span.FontSize;
nativeSpan.LineBreakMode = Control.LineBreakMode;
+ nativeSpan.HorizontalTextAlignment = Control.HorizontalTextAlignment;
nativeSpan.VerticalTextAlignment = Control.VerticalTextAlignment;
nativeSpan.ForegroundColor = span.ForegroundColor.ToNative();
nativeSpan.BackgroundColor = span.BackgroundColor.ToNative();
@@ -88,6 +89,7 @@ namespace Xamarin.Forms.Platform.Tizen
{
foreach (var span in Control.FormattedText.Spans)
{
+ span.HorizontalTextAlignment = Element.HorizontalTextAlignment.ToNative();
span.VerticalTextAlignment = Element.VerticalTextAlignment.ToNative();
}
}