diff options
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/Custom')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/Custom/UnfocusableTextField.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/UnfocusableTextField.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/UnfocusableTextField.cs index dd07863..97d26b9 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/UnfocusableTextField.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/UnfocusableTextField.cs @@ -29,14 +29,7 @@ namespace Xamarin.PropertyEditing.Mac Editable = false; Font = NSFont.FromFontName (PropertyEditorControl.DefaultFontName, PropertyEditorControl.DefaultPropertyLabelFontSize); Selectable = false; - } - - public override void DrawRect (CGRect dirtyRect) - { - CGPoint origin = new CGPoint (0.0f, 4.0f); - CGRect rect = new CGRect (origin, new CGSize (Bounds.Width - 5, Bounds.Height)); - - this.AttributedStringValue.DrawInRect (rect); + BackgroundColor = NSColor.Clear; } } }
\ No newline at end of file |