diff options
author | Larry Ewing <lewing@xamarin.com> | 2018-05-19 01:55:25 +0300 |
---|---|---|
committer | Larry Ewing <lewing@microsoft.com> | 2018-07-16 22:05:49 +0300 |
commit | 5889f9f18983075668012ab90c8d9714d66a017f (patch) | |
tree | 6e53cd06522c55dc7fee86bdcb9f800b9ab60826 /Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs | |
parent | 64ac72c40263f936d7d63286fac2c035c6afbe1c (diff) |
Don't reshow the Popover if it is already shown
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs index 19e68da..1ffbd5d 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/BrushEditorControl.cs @@ -31,7 +31,8 @@ namespace Xamarin.PropertyEditing.Mac if (Popover == null) return; - Popover?.Show (new CGRect (20, this.Frame.Height / 2 - 2.5, 5, 5), this, NSRectEdge.MinYEdge); + if (!Popover.Shown) + Popover?.Show (new CGRect (20, this.Frame.Height / 2 - 2.5, 5, 5), this, NSRectEdge.MinYEdge); } } |