summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-11-16 22:05:28 +0100
committerJason Smith <jason.smith@xamarin.com>2016-11-16 13:05:28 -0800
commitacc6efb3d7d502d0a40020ec86eaff4d018de8be (patch)
treeb5187bdde475f568e5b267dfc8240c5cc9223db7 /Xamarin.Forms.Platform.iOS
parent281bfa2b0a6de05130b87ad5c25f9bf8b05f876c (diff)
downloadxamarin-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.cs2
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();