diff options
author | Larry Ewing <lewing@xamarin.com> | 2018-05-10 02:31:40 +0300 |
---|---|---|
committer | Larry Ewing <lewing@microsoft.com> | 2018-07-16 22:05:49 +0300 |
commit | a7fb38a78a5af820c8f41c8e6db676b30df43cfb (patch) | |
tree | 509c7b60f941dd6b7beeecc9920af2caa3328b94 /Xamarin.PropertyEditing.Mac/Controls/Custom/CommonBrushLayer.cs | |
parent | 4d0cf0452d16bc17079febeec2a3fe653f4eed45 (diff) |
Move the value updates to the layout step
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/Custom/CommonBrushLayer.cs')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/Custom/CommonBrushLayer.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/CommonBrushLayer.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/CommonBrushLayer.cs index 1325567..e49e560 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/CommonBrushLayer.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/CommonBrushLayer.cs @@ -66,8 +66,8 @@ namespace Xamarin.PropertyEditing.Mac public override void LayoutSublayers () { base.LayoutSublayers (); - BrushLayer.Frame = new CGRect (0, 0, Frame.Width, Frame.Height); - Contents = DrawingExtensions.GenerateCheckerboard (Frame); + BrushLayer.Frame = Bounds; + Contents = DrawingExtensions.GenerateCheckerboard (Bounds); } public NSImage RenderPreview () |