macosx: Fix VLCLibraryCollectionViewFlowLayout content sizing

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
This commit is contained in:
Claudio Cambra 2022-11-23 23:26:08 +01:00 committed by Jean-Baptiste Kempf
parent 09a265cf0c
commit b7ed50cb59

View File

@ -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];