mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:30:37 +00:00
Correct computation of attachment cell frame.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27750 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6d9fd6d690
commit
54195911db
3 changed files with 23 additions and 10 deletions
|
@ -4811,12 +4811,17 @@ other than copy/paste or dragging. */
|
|||
if (cell != nil)
|
||||
{
|
||||
NSRect cellFrame;
|
||||
NSRect lfRect;
|
||||
|
||||
lfRect = [_layoutManager lineFragmentRectForGlyphAtIndex: startIndex
|
||||
effectiveRange: NULL];
|
||||
cellFrame.origin = [_layoutManager
|
||||
locationForGlyphAtIndex: startIndex];
|
||||
cellFrame.size = [_layoutManager
|
||||
attachmentSizeForGlyphAtIndex: startIndex];
|
||||
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