Permalink
Browse files

* When set to automatically resize items, items need a minimum size.

Otherwise, everything goes to hell if the view has a height of 0 (for instance, if it's been collapsed by a split view)
  • Loading branch information...
1 parent 0556ae7 commit 687129539a4df9772f9c26878c2a5e758f9c60ee @mattball committed Apr 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 MBCoverFlowView.m
View
@@ -490,7 +490,7 @@ - (NSSize)itemSize
}
NSSize size;
- size.height = ([self frame].size.height - origin) - [self frame].size.height/3;
+ size.height = fmax(([self frame].size.height - origin) - [self frame].size.height/3, 1.0f);
size.width = size.height * _itemSize.width / _itemSize.height;
// Make sure it's integral

0 comments on commit 6871295

Please sign in to comment.