mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-09 18:30:59 +00:00
fixed: _textContainerOrigin.y was not respected when predicting the cared position in empty textview
This commit is contained in:
1 parent
93b0c5a7e5
commit
329469fe84
1 file changed
+1
-1
@@ -1973,7 +1973,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
var font = [_typingAttributes objectForKey:CPFontAttributeName] || [self font];
|
||||
|
||||
caretRect.size.height = [font size];
|
||||
caretRect.origin.y = ([font ascender] - [font descender]) * 0.5;
|
||||
caretRect.origin.y = ([font ascender] - [font descender]) * 0.5 + _textContainerOrigin.y;
|
||||
}
|
||||
|
||||
caretRect.origin.x += caretRect.size.width;
|
||||
|
||||
Reference in new issue
Block a user