Permalink
Browse files

Fixed issue with using NSZeroRect for initial view size

  • Loading branch information...
1 parent 8fc9b7f commit 9bdf733856c2b5dcab5c105f1134a1867019c836 @indragie indragie committed Jun 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 JAListView.m
View
@@ -895,7 +895,7 @@ - (void)updateCachedVisibleViews {
NSMutableArray *newVisibleViews = [NSMutableArray array];
NSUInteger index = 0;
for(JAListViewItem *view in self.cachedViews) {
- if(NSIntersectsRect(visibleRect, NSMakeRect(view.frame.origin.x, self.cachedLocations[index], view.frame.size.width, view.frame.size.height))) {
+ if(NSIntersectsRect(visibleRect, NSMakeRect(view.frame.origin.x, self.cachedLocations[index], MAX(view.frame.size.width, 1.0f), MAX(view.frame.size.height, 1.0f)))) {
[newVisibleViews addObject:view];
}

0 comments on commit 9bdf733

Please sign in to comment.