diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2016-11-16 22:05:28 +0100 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-11-16 13:05:28 -0800 |
commit | acc6efb3d7d502d0a40020ec86eaff4d018de8be (patch) | |
tree | b5187bdde475f568e5b267dfc8240c5cc9223db7 /Xamarin.Forms.Platform.iOS | |
parent | 281bfa2b0a6de05130b87ad5c25f9bf8b05f876c (diff) | |
download | xamarin-forms-acc6efb3d7d502d0a40020ec86eaff4d018de8be.tar.gz xamarin-forms-acc6efb3d7d502d0a40020ec86eaff4d018de8be.tar.bz2 xamarin-forms-acc6efb3d7d502d0a40020ec86eaff4d018de8be.zip |
[W] Support 0 as valid BorderWidth (#537)
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs index ac972230..8d043bac 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs @@ -113,7 +113,7 @@ namespace Xamarin.Forms.Platform.iOS if (button.BorderColor != Color.Default) uiButton.Layer.BorderColor = button.BorderColor.ToCGColor(); - uiButton.Layer.BorderWidth = (float)button.BorderWidth; + uiButton.Layer.BorderWidth = Math.Max(0f, (float)button.BorderWidth); uiButton.Layer.CornerRadius = button.BorderRadius; UpdateBackgroundVisibility(); |