diff options
author | CartBlanche <savagesoftware@gmail.com> | 2019-10-15 20:43:18 +0300 |
---|---|---|
committer | CartBlanche <savagesoftware@gmail.com> | 2019-10-24 22:48:32 +0300 |
commit | 9bba001fafb289299fe93c5e8a321ac792d8855b (patch) | |
tree | 3f6626f97d744d1782d136f4421c6cfc859f1f1d /Xamarin.PropertyEditing.Mac/Controls/NumericEditorControl.cs | |
parent | 16732a8e879487b51467e95b7a1541f23f12fecb (diff) |
[Mac] Tweaks for a more consistent UX
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/NumericEditorControl.cs')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/NumericEditorControl.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/NumericEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/NumericEditorControl.cs index 05f451d..e56debf 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/NumericEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/NumericEditorControl.cs @@ -136,12 +136,11 @@ namespace Xamarin.PropertyEditing.Mac AddSubview (this.inputModePopup); this.editorInputModeConstraint = NSLayoutConstraint.Create (NumericEditor, NSLayoutAttribute.Right, NSLayoutRelation.Equal, this.inputModePopup, NSLayoutAttribute.Left, 1, -4); - this.AddConstraints (new[] { + AddConstraints (new[] { this.editorInputModeConstraint, NSLayoutConstraint.Create (this.inputModePopup, NSLayoutAttribute.CenterY, NSLayoutRelation.Equal, this, NSLayoutAttribute.CenterY, 1f, 0f), NSLayoutConstraint.Create (this.inputModePopup, NSLayoutAttribute.Right, NSLayoutRelation.Equal, this, NSLayoutAttribute.Right, 1f, 0f), - NSLayoutConstraint.Create (this.inputModePopup, NSLayoutAttribute.Width, NSLayoutRelation.Equal, 1f, 80f), - NSLayoutConstraint.Create (this.inputModePopup, NSLayoutAttribute.Height, NSLayoutRelation.Equal, NumericEditor, NSLayoutAttribute.Height, 1f, 0), + NSLayoutConstraint.Create (this.inputModePopup, NSLayoutAttribute.Width, NSLayoutRelation.Equal, 1f, DefaultButtonWidth), }); } |