Changeset 5463
- Timestamp:
- 04/20/08 01:03:48 (4 weeks ago)
- Files:
-
- Spiral/trunk/SPDrillListView.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Spiral/trunk/SPDrillListView.m
r5461 r5463 95 95 - (NSRect)_frameForIndex:(NSInteger)index { 96 96 NSSize size; 97 CGFloat yOffset; 97 98 98 99 size = [self frame].size; 99 100 100 return NSMakeRect(0.0, size.height - ((index + 1) * SPDrillListViewItemHeight), size.width, SPDrillListViewItemHeight); 101 if([_items count] < [self _visibleItems]) 102 yOffset = floor((size.height - (SPDrillListViewItemHeight * [_items count])) / 2.0); 103 else 104 yOffset = 0.0; 105 106 return NSMakeRect(0.0, size.height - ((index + 1) * SPDrillListViewItemHeight) - yOffset, size.width, SPDrillListViewItemHeight); 101 107 } 102 108
