summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/Renderers/FrameRenderer.cs
diff options
context:
space:
mode:
authorwoutermeuwis <wouter.meuwis@3factr.be>2017-07-06 18:02:21 (GMT)
committerJason Smith <jason.smith@xamarin.com>2017-07-06 18:02:21 (GMT)
commitb5b84fef02dbfc47ddf07fffbe9153cc211ded1b (patch)
tree8d1049ed0164cffafcbbcf7abd351cd3616fb464 /Xamarin.Forms.Platform.Android/Renderers/FrameRenderer.cs
parenta8c293dc9645a10b6fec92147df09df1d5dbb8d7 (diff)
downloadxamarin-forms-b5b84fef02dbfc47ddf07fffbe9153cc211ded1b.zip
xamarin-forms-b5b84fef02dbfc47ddf07fffbe9153cc211ded1b.tar.gz
xamarin-forms-b5b84fef02dbfc47ddf07fffbe9153cc211ded1b.tar.bz2
Update FrameRenderer.cs (#1023)
Removed the cornerRadius conversion to pixels in the DrawCanvas function. In both the DrawOutline and DrawBackground function the conversion is done as well, which caused it to happen twice, resulting in wrong radius.
Diffstat (limited to 'Xamarin.Forms.Platform.Android/Renderers/FrameRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Android/Renderers/FrameRenderer.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.Android/Renderers/FrameRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/FrameRenderer.cs
index 9c84b62..68c7fbc 100644
--- a/Xamarin.Forms.Platform.Android/Renderers/FrameRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/Renderers/FrameRenderer.cs
@@ -208,12 +208,10 @@ namespace Xamarin.Forms.Platform.Android
if (cornerRadius == -1f)
cornerRadius = 5f; // default corner radius
- else
- cornerRadius = Forms.Context.ToPixels(cornerRadius);
DrawBackground(canvas, width, height, cornerRadius, pressed);
DrawOutline(canvas, width, height, cornerRadius);
}
}
}
-} \ No newline at end of file
+}