mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-03 21:58:59 +00:00
fixed: caret color in textview
This commit is contained in:
1 parent
e66a0656c8
commit
ac52d32c29
1 file changed
+4
-1
@@ -2632,7 +2632,6 @@ var CPTextViewAllowsUndoKey = @"CPTextViewAllowsUndoKey",
|
||||
style.padding = "0px";
|
||||
style.margin = "0px";
|
||||
style.whiteSpace = "pre";
|
||||
style.backgroundColor = "black";
|
||||
_caretDOM.style.width = "1px";
|
||||
_caretDOM.style.zIndex = 10001;
|
||||
_textView = aView;
|
||||
@@ -2699,6 +2698,10 @@ var CPTextViewAllowsUndoKey = @"CPTextViewAllowsUndoKey",
|
||||
if (aLoc >= [_textView._layoutManager numberOfCharacters])
|
||||
rect.origin.x = CGRectGetMaxX(rect);
|
||||
|
||||
#if PLATFORM(DOM)
|
||||
_caretDOM.style.backgroundColor = [_textView._insertionPointColor cssString] || "black";
|
||||
#endif
|
||||
|
||||
[self setRect:rect];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user