mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-12 11:37:07 +00:00
caret height fix
This commit is contained in:
1 parent
d2caa0953f
commit
181ef788a3
1 file changed
+1
@@ -1712,6 +1712,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
else
|
||||
{
|
||||
caretRect = [_layoutManager boundingRectForGlyphRange:CPMakeRange(_selectionRange.location, 1) inTextContainer:_textContainer];
|
||||
caretRect.size.height -= 3; // mimic the native caret metrics on macosx
|
||||
}
|
||||
|
||||
caretRect.origin.x += _textContainerOrigin.x;
|
||||
|
||||
Reference in new issue
Block a user