Changeset 9304


Ignore:
Timestamp:
Oct 12, 2009, 3:15:37 AM (13 years ago)
Author:
livings124
Message:

don't zoom in/out the QL window if the corresponding row isn't visible

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9303 r9304  
    31953195       
    31963196        NSRect frame = [fTableView iconRectForRow: row];
     3197       
     3198        if (!NSIntersectsRect([fTableView visibleRect], frame))
     3199                return NSZeroRect;
     3200       
    31973201        frame.origin = [fTableView convertPoint: frame.origin toView: nil];
    31983202        frame.origin = [fWindow convertBaseToScreen: frame.origin];
  • trunk/macosx/InfoWindowController.m

    r9301 r9304  
    11781178        {
    11791179            NSRect frame = [fileOutlineView iconRectForRow: row];
     1180           
     1181            if (!NSIntersectsRect([fileOutlineView visibleRect], frame))
     1182                return NSZeroRect;
     1183           
    11801184            frame.origin = [fileOutlineView convertPoint: frame.origin toView: nil];
    11811185            frame.origin = [[self window] convertBaseToScreen: frame.origin];
Note: See TracChangeset for help on using the changeset viewer.