summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/Renderers
diff options
context:
space:
mode:
authorwoutermeuwis <wouter.meuwis@3factr.be>2017-07-06 20:02:21 +0200
committerJason Smith <jason.smith@xamarin.com>2017-07-06 11:02:21 -0700
commitb5b84fef02dbfc47ddf07fffbe9153cc211ded1b (patch)
tree8d1049ed0164cffafcbbcf7abd351cd3616fb464 /Xamarin.Forms.Platform.Android/Renderers
parenta8c293dc9645a10b6fec92147df09df1d5dbb8d7 (diff)
downloadxamarin-forms-b5b84fef02dbfc47ddf07fffbe9153cc211ded1b.tar.gz
xamarin-forms-b5b84fef02dbfc47ddf07fffbe9153cc211ded1b.tar.bz2
xamarin-forms-b5b84fef02dbfc47ddf07fffbe9153cc211ded1b.zip
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')
-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 9c84b628..68c7fbc6 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
+}