summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchungryeol lim <cdark.lim@samsung.com>2017-01-24 11:30:22 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-03-24 13:19:01 +0900
commit47013a728f46f9af08cd8a9bda587d5182fd6d6d (patch)
tree601ec6bae69cdeb8cd21c1e6d46f9cc3fb8c874e
parentc97c6c2b8d007a4f2408d95c7825170182cc49c4 (diff)
downloadxamarin-forms-47013a728f46f9af08cd8a9bda587d5182fd6d6d.tar.gz
xamarin-forms-47013a728f46f9af08cd8a9bda587d5182fd6d6d.tar.bz2
xamarin-forms-47013a728f46f9af08cd8a9bda587d5182fd6d6d.zip
Fixd Label.HorizontalTextAlignment issue
Change-Id: Id77f1d65d8e6c346b31be011759de7f9fd1dfe3f Signed-off-by: chungryeol lim <cdark.lim@samsung.com>
-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();
}
}