diff options
author | Bertrand Le Roy <beleroy@microsoft.com> | 2018-09-19 02:32:34 +0300 |
---|---|---|
committer | Bertrand Le Roy <beleroy@microsoft.com> | 2018-09-19 02:41:20 +0300 |
commit | ea69837cbfb6c019e57bdf92e975a1a3e67ff035 (patch) | |
tree | b98db517c0fcbddea48864ac4355e065a86ac361 | |
parent | 3a99673a4082de39bedc5018857d5f52fea66e1a (diff) |
Give numeric text fields a minimum size (fixes #404)
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs index f324c9b..839cb46 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs @@ -1,5 +1,6 @@ using System; using AppKit; +using CoreGraphics; using Foundation; using ObjCRuntime; @@ -39,6 +40,8 @@ namespace Xamarin.PropertyEditing.Mac Delegate = keyUpDownDelegate; } + public override CGSize IntrinsicContentSize => new CGSize(30, 20); + public override bool ShouldBeginEditing (NSText textObject) { CachedCurrentEditor = textObject; |