diff options
author | woutermeuwis <wouter.meuwis@3factr.be> | 2017-07-06 20:02:21 +0200 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2017-07-06 11:02:21 -0700 |
commit | b5b84fef02dbfc47ddf07fffbe9153cc211ded1b (patch) | |
tree | 8d1049ed0164cffafcbbcf7abd351cd3616fb464 /Xamarin.Forms.Platform.Android/Renderers | |
parent | a8c293dc9645a10b6fec92147df09df1d5dbb8d7 (diff) | |
download | xamarin-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.cs | 4 |
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 +} |