* 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:
rmottola 2013-10-26 15:50:02 +00:00
parent c2f1410076
commit 09ac2ff97f
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> 2013-10-26 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSMenuView.m (-heightForItem:): Use * Source/NSMenuView.m (-heightForItem:): Use

View file

@ -5573,12 +5573,14 @@ other than copy/paste or dragging. */
cellFrame.origin = cellFrame.origin =
[_layoutManager [_layoutManager
locationForGlyphAtIndex: glyphIndex]; 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 = cellFrame.size =
[_layoutManager [_layoutManager
attachmentSizeForGlyphAtIndex: glyphIndex]; attachmentSizeForGlyphAtIndex: glyphIndex];
cellFrame.origin.y -= cellFrame.size.height; cellFrame.origin.y -= cellFrame.size.height;
cellFrame.origin.x += lfRect.origin.x;
cellFrame.origin.y += lfRect.origin.y;
/* TODO: What about the insertion point ? */ /* TODO: What about the insertion point ? */
if ([cell wantsToTrackMouseForEvent: theEvent if ([cell wantsToTrackMouseForEvent: theEvent