diff options
author | Rui Marinho <me@ruimarinho.net> | 2016-05-26 20:05:14 +0100 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-05-26 12:05:14 -0700 |
commit | 349336dbf12fb158f7731ece7fb1524cb1f5808a (patch) | |
tree | 5f9f70d20b6ba4aaf0a3a17040381f18e16f8783 /Xamarin.Forms.Platform.WinRT/ViewToRendererConverter.cs | |
parent | c502f47980882e61402f77a55236653a22f706ab (diff) | |
download | xamarin-forms-349336dbf12fb158f7731ece7fb1524cb1f5808a.tar.gz xamarin-forms-349336dbf12fb158f7731ece7fb1524cb1f5808a.tar.bz2 xamarin-forms-349336dbf12fb158f7731ece7fb1524cb1f5808a.zip |
Fix margins on ViewCell (#189)
* [iOS] Set the frame of a cell NativeView using the calculated positions and size
* [UWP] Make wrapper of a ViewCell respect margins
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT/ViewToRendererConverter.cs')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/ViewToRendererConverter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/ViewToRendererConverter.cs b/Xamarin.Forms.Platform.WinRT/ViewToRendererConverter.cs index 1c078d93..2d8a4f90 100644 --- a/Xamarin.Forms.Platform.WinRT/ViewToRendererConverter.cs +++ b/Xamarin.Forms.Platform.WinRT/ViewToRendererConverter.cs @@ -66,7 +66,7 @@ namespace Xamarin.Forms.Platform.WinRT _view.IsInNativeLayout = false; var content = Content as FrameworkElement; - content.Arrange(new Rect(0, 0, finalSize.Width, finalSize.Height)); + content.Arrange(new Rect(_view.X, _view.Y, _view.Width, _view.Height)); return finalSize; } |