diff options
author | BradChase2011 <brchase07@yahoo.com> | 2017-05-30 05:35:06 -0400 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2017-05-30 10:35:06 +0100 |
commit | d0cdd45bc3db1cb3b50bf4a866caca5f3bc958e2 (patch) | |
tree | b727ae6878b89c2692ebd64bc7a1685d1d7ea6e8 /Xamarin.Forms.Platform.MacOS | |
parent | 4af6f48fe7e9368d6659040e50a9dab97f8cb872 (diff) | |
download | xamarin-forms-d0cdd45bc3db1cb3b50bf4a866caca5f3bc958e2.tar.gz xamarin-forms-d0cdd45bc3db1cb3b50bf4a866caca5f3bc958e2.tar.bz2 xamarin-forms-d0cdd45bc3db1cb3b50bf4a866caca5f3bc958e2.zip |
bz56945, macOS: Issue where colored text on buttons were not centering correctly. (#942)
Diffstat (limited to 'Xamarin.Forms.Platform.MacOS')
-rw-r--r-- | Xamarin.Forms.Platform.MacOS/Renderers/ButtonRenderer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.MacOS/Renderers/ButtonRenderer.cs b/Xamarin.Forms.Platform.MacOS/Renderers/ButtonRenderer.cs index b23b4228..f9e3c87d 100644 --- a/Xamarin.Forms.Platform.MacOS/Renderers/ButtonRenderer.cs +++ b/Xamarin.Forms.Platform.MacOS/Renderers/ButtonRenderer.cs @@ -123,7 +123,7 @@ namespace Xamarin.Forms.Platform.MacOS } else { - var textWithColor = new NSAttributedString(Element.Text ?? "", foregroundColor: color.ToNSColor()); + var textWithColor = new NSAttributedString(Element.Text ?? "", foregroundColor: color.ToNSColor( ), paragraphStyle: new NSMutableParagraphStyle( ) { Alignment = NSTextAlignment.Center }); Control.AttributedTitle = textWithColor; } } |