mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-11 11:07:07 +00:00
fix caret height on last line
This commit is contained in:
1 parent
181ef788a3
commit
679ac3e5b1
1 file changed
+1
-1
@@ -1712,12 +1712,12 @@ 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;
|
||||
caretRect.origin.y += _textContainerOrigin.y;
|
||||
caretRect.size.width = 1;
|
||||
caretRect.size.height -= 3; // mimic the native caret metrics on macosx
|
||||
[_caret setRect:caretRect];
|
||||
|
||||
if (flag)
|
||||
|
||||
Reference in new issue
Block a user