summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers
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-07-10 11:11:18 +0900
commitf65fa0d4b5f601295ab87b1cc82b1c6b0ee1ed29 (patch)
tree402d4f1bd6f3723e2afb12ef8eae24e7ffa1a15d /Xamarin.Forms.Platform.Tizen/Renderers
parentc3f6ed1cfd0854d8639e44d146420d5afc9ae763 (diff)
downloadxamarin-forms-f65fa0d4b5f601295ab87b1cc82b1c6b0ee1ed29.tar.gz
xamarin-forms-f65fa0d4b5f601295ab87b1cc82b1c6b0ee1ed29.tar.bz2
xamarin-forms-f65fa0d4b5f601295ab87b1cc82b1c6b0ee1ed29.zip
Fixd Label.HorizontalTextAlignment issue
Change-Id: Id77f1d65d8e6c346b31be011759de7f9fd1dfe3f Signed-off-by: chungryeol lim <cdark.lim@samsung.com>
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers')
-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();
}
}