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-02-03 13:28:06 +0900
commit3bd9baf1348c00caab933087554f84fbe9ba3289 (patch)
tree9d2a63941b5fc587e40368d65b57a9440f320345
parent824d0e2fd8a6826094e8aec1b47deef06bdf4a38 (diff)
downloadxamarin-forms-3bd9baf1348c00caab933087554f84fbe9ba3289.tar.gz
xamarin-forms-3bd9baf1348c00caab933087554f84fbe9ba3289.tar.bz2
xamarin-forms-3bd9baf1348c00caab933087554f84fbe9ba3289.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();
}
}