From b5b84fef02dbfc47ddf07fffbe9153cc211ded1b Mon Sep 17 00:00:00 2001 From: woutermeuwis Date: Thu, 6 Jul 2017 20:02:21 +0200 Subject: 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. --- Xamarin.Forms.Platform.Android/Renderers/FrameRenderer.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Xamarin.Forms.Platform.Android/Renderers/FrameRenderer.cs') 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 +} -- cgit v1.2.3