Revision: 27742
http://sourceforge.net/p/bibdesk/svn/27742
Author: hofman
Date: 2022-07-18 19:13:05 +0000 (Mon, 18 Jul 2022)
Log Message:
-----------
show menu near top of item or view
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2022-07-18
18:48:39 UTC (rev 27741)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2022-07-18
19:13:05 UTC (rev 27742)
@@ -4642,7 +4642,7 @@
- (BOOL)accessibilityPerformShowMenu {
NSRect rect = [self visibleRect];
- NSPoint p = NSMakePoint(NSMidX(rect), NSMidY(rect));
+ NSPoint p = NSMakePoint(NSMidX(rect), NSMinY(rect) + 10.0);
NSUInteger i = [self _indexAtPoint:p dropOperation:NULL];
[[self menuForIconAtIndex:i] popUpMenuPositioningItem:nil atLocation:p
inView:self];
return YES;
@@ -4783,7 +4783,7 @@
NSUInteger r, c;
[self _getGridRow:&r column:&c ofIndex:[element index]];
NSRect rect = [self _rectOfIconInRow:r column:c];
- NSPoint p = NSMakePoint(NSMidX(rect), NSMidY(rect));
+ NSPoint p = NSMakePoint(NSMidX(rect), fmin(NSMidY(rect), NSMinY(rect)
+ 10.0));
[[self menuForIconAtIndex:[element index]]
popUpMenuPositioningItem:nil atLocation:p inView:self];
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit