Revision: 26181 http://sourceforge.net/p/bibdesk/svn/26181 Author: hofman Date: 2021-06-09 09:31:50 +0000 (Wed, 09 Jun 2021) Log Message: ----------- Get visible rect from control itself
Modified Paths: -------------- trunk/bibdesk/BDSKComplexStringEditor.m Modified: trunk/bibdesk/BDSKComplexStringEditor.m =================================================================== --- trunk/bibdesk/BDSKComplexStringEditor.m 2021-06-09 06:30:23 UTC (rev 26180) +++ trunk/bibdesk/BDSKComplexStringEditor.m 2021-06-09 09:31:50 UTC (rev 26181) @@ -213,12 +213,11 @@ NSRect winFrame = [[self window] frame]; CGFloat margin = 4.0; // for the shadow and focus ring CGFloat minWidth = 16.0; // minimal width of the window without margins, so subviews won't get shifted - NSView *contentView = (NSView *)[[control enclosingScrollView] contentView] ?: (NSView *)control; if ([control isKindOfClass:[NSTableView class]]) lowerEdgeRect = [(NSTableView *)control frameOfCellAtColumn:column row:row]; lowerEdgeRect = BDSKSliceRect(lowerEdgeRect, 1.0, lowerEdge); - lowerEdgeRect = NSIntersectionRect(lowerEdgeRect, [control convertRect:[contentView visibleRect] fromView:contentView]); + lowerEdgeRect = NSIntersectionRect(lowerEdgeRect, [control visibleRect]); // see if the cell's lower edge is scrolled out of sight if (NSIsEmptyRect(lowerEdgeRect)) { if ([self isWindowVisible]) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit