Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed live resizing of the grid view

  • Loading branch information...
commit 9d19476e3629fc3411927be65a73a3252ed624a0 1 parent 94b67fc
@indragiek authored
Showing with 4 additions and 7 deletions.
  1. +4 −7 OEGridView.m
View
11 OEGridView.m
@@ -800,14 +800,11 @@ - (void)OE_clipViewFrameChanged:(NSNotification *)notification
[self setFrame:[[self enclosingScrollView] bounds]];
[self OE_centerNoItemsView];
}
- else
+ const NSRect visibleRect = [[self enclosingScrollView] documentVisibleRect];
+ if(!NSEqualSizes(_cachedViewSize, visibleRect.size))
{
- const NSRect visibleRect = [[self enclosingScrollView] documentVisibleRect];
- if(!NSEqualSizes(_cachedViewSize, visibleRect.size))
- {
- [self OE_cancelFieldEditor];
- [self performSelector:@selector(OE_calculateCachedValuesAndQueryForDataChanges:) withObject:[NSNumber numberWithBool:NO] afterDelay:0.25];
- }
+ [self OE_cancelFieldEditor];
+ [self OE_calculateCachedValuesAndQueryForDataChanges:NO];
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.