mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 18:10:38 +00:00
* Source/NSTextView.m (-mouseDown:): Use container origin for attachment cells.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37283 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c2f1410076
commit
09ac2ff97f
2 changed files with 9 additions and 2 deletions
|
@ -5573,12 +5573,14 @@ other than copy/paste or dragging. */
|
|||
cellFrame.origin =
|
||||
[_layoutManager
|
||||
locationForGlyphAtIndex: glyphIndex];
|
||||
cellFrame.origin.x += lfRect.origin.x;
|
||||
cellFrame.origin.y += lfRect.origin.y;
|
||||
cellFrame.origin.x += _textContainerOrigin.x;
|
||||
cellFrame.origin.y += _textContainerOrigin.y;
|
||||
cellFrame.size =
|
||||
[_layoutManager
|
||||
attachmentSizeForGlyphAtIndex: glyphIndex];
|
||||
cellFrame.origin.y -= cellFrame.size.height;
|
||||
cellFrame.origin.x += lfRect.origin.x;
|
||||
cellFrame.origin.y += lfRect.origin.y;
|
||||
|
||||
/* TODO: What about the insertion point ? */
|
||||
if ([cell wantsToTrackMouseForEvent: theEvent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue