* 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:
Riccardo Mottola 2013-10-26 15:50:02 +00:00
parent 56803c6c14
commit d472adfbb1
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2013-10-26 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTextView.m (-mouseDown:): Use container origin for
attachment cells.
2013-10-26 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSMenuView.m (-heightForItem:): Use

View file

@ -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