Skip to content
Snippets Groups Projects
Commit b7ed50cb authored by Claudio Cambra's avatar Claudio Cambra Committed by Jean-Baptiste Kempf
Browse files

macosx: Fix VLCLibraryCollectionViewFlowLayout content sizing


Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent 09a265cf
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment