diff options
author | Dominique Louis <dominique@MININT-APK0RV5.redmond.corp.microsoft.com> | 2018-11-28 21:26:03 +0300 |
---|---|---|
committer | Dominique Louis <dominique@yen-x1-31.fareast.corp.microsoft.com> | 2018-12-02 11:43:33 +0300 |
commit | 794123986062cb0a8ab2885bbb449bb62f9f13ad (patch) | |
tree | fdcd9a4636e0458ae2481b9b6013d326a5604976 /Xamarin.PropertyEditing.Mac/Controls/BasePointEditorControl.cs | |
parent | f80e7ff3c1c16f95a4e834f59858fd7fbe69f5b3 (diff) |
[Mac] Fix vertical alignment of labels in resource lists.
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/BasePointEditorControl.cs')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/BasePointEditorControl.cs | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/BasePointEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/BasePointEditorControl.cs index 69cbb5f..dd32a50 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/BasePointEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/BasePointEditorControl.cs @@ -17,33 +17,30 @@ namespace Xamarin.PropertyEditing.Mac public override NSView FirstKeyView => XEditor; public override NSView LastKeyView => YEditor.DecrementButton; - public BasePointEditorControl () + protected BasePointEditorControl () { XLabel = new UnfocusableTextField (); - XEditor = new NumericSpinEditor<T> (); - XEditor.BackgroundColor = NSColor.Clear; - XEditor.Value = 0.0f; + XEditor = new NumericSpinEditor<T> { + BackgroundColor = NSColor.Clear, + Value = 0.0f + }; XEditor.ValueChanged += OnInputUpdated; - XLabel.AccessibilityElement = false; - YLabel = new UnfocusableTextField (); - YEditor = new NumericSpinEditor<T> (); - YEditor.BackgroundColor = NSColor.Clear; - YEditor.Value = 0.0f; + YEditor = new NumericSpinEditor<T> { + BackgroundColor = NSColor.Clear, + Value = 0.0f + }; YEditor.ValueChanged += OnInputUpdated; - YLabel.AccessibilityElement = false; - AddSubview (XLabel); AddSubview (XEditor); AddSubview (YLabel); AddSubview (YEditor); this.DoConstraints (new[] { - XEditor.ConstraintTo (this, (xe, c) => xe.Left == xe.Left - 1), XEditor.ConstraintTo (this, (xe, c) => xe.Width == 90), XEditor.ConstraintTo (this, (xe, c) => xe.Height == DefaultControlHeight), YEditor.ConstraintTo (this, (ye, c) => ye.Width == 90), |