mirror of
https://github.com/videolan/vlc.git
synced 2024-11-23 18:03:48 +08:00
macosx: Fix VLCLibraryCollectionViewFlowLayout content sizing
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
This commit is contained in:
parent
09a265cf0c
commit
b7ed50cb59
@ -159,6 +159,18 @@ static CVReturn detailViewAnimationCallback(CVDisplayLinkRef displayLink,
|
||||
|
||||
#pragma mark - Flow Layout methods
|
||||
|
||||
- (NSSize)collectionViewContentSize
|
||||
{
|
||||
NSSize contentSize = [super collectionViewContentSize];
|
||||
|
||||
if (!_selectedIndexPath) {
|
||||
return contentSize;
|
||||
}
|
||||
|
||||
contentSize.height += [self currentAnimationStep];
|
||||
return contentSize;
|
||||
}
|
||||
|
||||
- (NSCollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
NSCollectionViewLayoutAttributes *attributes = [super layoutAttributesForItemAtIndexPath:indexPath];
|
||||
|
Loading…
Reference in New Issue
Block a user