mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 17:52:42 +00:00
Correct frame
This commit is contained in:
parent
6df9f5466b
commit
14131287b3
1 changed files with 2 additions and 1 deletions
|
@ -1630,11 +1630,12 @@ static BOOL menuBarVisible = YES;
|
|||
atLocation: (NSPoint) point
|
||||
inView: (NSView *) view
|
||||
{
|
||||
NSRect cellFrame = [[view window] convertRectToScreen: [view frame]];
|
||||
NSRect cellFrame = [view convertRect: [view bounds] toView: nil];
|
||||
NSWindow *w = [view window];
|
||||
NSMenuView *mr = [self menuRepresentation];
|
||||
NSUInteger selectedItem = [self indexOfItem: item];
|
||||
|
||||
cellFrame = [[view window] convertRectToScreen: cellFrame];
|
||||
cellFrame.origin.x += point.x;
|
||||
cellFrame.origin.y += point.y;
|
||||
|
||||
|
|
Loading…
Reference in a new issue