Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Maupin <ermaup@microsoft.com>2019-05-15 20:31:50 +0300
committerGitHub <noreply@github.com>2019-05-15 20:31:50 +0300
commiteeb853e1c6fa451a699a56dee59c26ecddab5fac (patch)
tree4c6ffd18b18958221b7b898e66ee862390082ff5 /Xamarin.PropertyEditing.Mac/Controls
parentb973e17b94b8dd320addb6ad1bc272f521a92fc7 (diff)
parentcebb745116a3a6507e4b5cbc4e64773814381bc2 (diff)
Merge pull request #596 from xamarin/dominique-Fix553
[Mac] Setting the Formatter by default breaks the RatioEditor rendering.
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls')
-rw-r--r--Xamarin.PropertyEditing.Mac/Controls/RatioEditorControl.cs9
1 files changed, 2 insertions, 7 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/RatioEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/RatioEditorControl.cs
index 2fd4404..7591c2b 100644
--- a/Xamarin.PropertyEditing.Mac/Controls/RatioEditorControl.cs
+++ b/Xamarin.PropertyEditing.Mac/Controls/RatioEditorControl.cs
@@ -15,13 +15,8 @@ namespace Xamarin.PropertyEditing.Mac
{
base.TranslatesAutoresizingMaskIntoConstraints = false;
- this.ratioEditor = new RatioEditor<T> (hostResources) {
- AllowNegativeValues = false,
- AllowRatios = true,
- BackgroundColor = NSColor.Clear,
- StringValue = string.Empty,
- TranslatesAutoresizingMaskIntoConstraints = false,
- };
+ this.ratioEditor = new RatioEditor<T> (hostResources);
+ this.ratioEditor.SetFormatter (null);
// update the value on keypress
this.ratioEditor.ValueChanged += (sender, e) => {