From c86e6f5b88ca5fd9ca6b4db1515d88c698b3b5e1 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sat, 27 Jun 2015 13:58:58 +0200 Subject: [PATCH] fix rare invisibility bug --- AppKit/CPTextView/CPTextView.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 104d95f9a..8a30b6225 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -675,7 +675,7 @@ var kDelegateRespondsTo_textShouldBeginEditing - (void)_activateNativeInputElement:(DOMElemet)aNativeField { var attributes=[[self typingAttributes] copy]; - [attributes setObject:[CPColor colorWithRed:1 green:1 blue:1 alpha:0] forKey:CPForegroundColorAttributeName]; // make it invisible + // [attributes setObject:[CPColor colorWithRed:1 green:1 blue:1 alpha:0] forKey:CPForegroundColorAttributeName]; // make it invisible var placeholderString = [[CPAttributedString alloc] initWithString:aNativeField.innerHTML attributes:attributes]; [self insertText:placeholderString]; // FIXME: this hack to provide the visual space for the inputmanager should at least bypass the undomanager