diff options
author | Dominique Louis <savagesoftware@gmail.com> | 2018-08-16 12:09:39 +0300 |
---|---|---|
committer | Dominique Louis <savagesoftware@gmail.com> | 2018-08-16 12:09:39 +0300 |
commit | 4bca52e6dbadae29f26b5504f27f07735a6b2c28 (patch) | |
tree | 23fb91328917d68ff7aecc08c50f1998c3b4bae2 /Xamarin.PropertyEditing.Mac/Controls | |
parent | 824f73170300f95f4aa8ec8fb712ee5c80682612 (diff) |
[Mac] Increase Property Button Hit Area.
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/BaseEditorControl.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/BaseEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/BaseEditorControl.cs index bb0f2ca..439be5d 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/BaseEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/BaseEditorControl.cs @@ -12,7 +12,7 @@ namespace Xamarin.PropertyEditing.Mac internal abstract class BaseEditorControl : NSView { IEnumerable errorList; - const int DefaultPropertyButtonSize = 10; + const int DefaultPropertyButtonSize = 20; const int DefaultActioButtonSize = 16; public event EventHandler ActionButtonClicked; @@ -68,11 +68,11 @@ namespace Xamarin.PropertyEditing.Mac this.DoConstraints (new[] { propertyButton.ConstraintTo (this, (ab, c) => ab.Width == DefaultPropertyButtonSize), propertyButton.ConstraintTo (this, (ab, c) => ab.Height == DefaultPropertyButtonSize), - propertyButton.ConstraintTo (this, (ab, c) => ab.Top == c.Top + 6), // TODO: Better centering based on the icon height - propertyButton.ConstraintTo (this, (ab, c) => ab.Left == c.Right - 28), + propertyButton.ConstraintTo (this, (ab, c) => ab.Top == c.Top + 1), + propertyButton.ConstraintTo (this, (ab, c) => ab.Left == c.Right - 33), actionButton.ConstraintTo (this, (eb, c) => eb.Width == DefaultActioButtonSize), actionButton.ConstraintTo (this, (eb, c) => eb.Height == DefaultActioButtonSize), - actionButton.ConstraintTo (propertyButton, (eb, ab) => eb.Left == ab.Left + 10), + actionButton.ConstraintTo (propertyButton, (eb, ab) => eb.Left == ab.Left + DefaultPropertyButtonSize), actionButton.ConstraintTo (this, (eb, c) => eb.Top == c.Top + 3), // TODO: Better centering based on the icon height }); |