mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
fix caret height on last line
This commit is contained in:
@@ -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