mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +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
56803c6c14
commit
d472adfbb1
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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…
Reference in a new issue