[vlc-commits] [Git][videolan/vlc][master] macosx: Fix VLCLibraryCollectionViewFlowLayout content sizing

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sun Nov 27 09:15:17 UTC 2022



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
b7ed50cb by Claudio Cambra at 2022-11-27T09:02:49+00:00
macosx: Fix VLCLibraryCollectionViewFlowLayout content sizing

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- modules/gui/macosx/library/VLCLibraryCollectionViewFlowLayout.m


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryCollectionViewFlowLayout.m
=====================================
@@ -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];



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b7ed50cb59c5de2cd1053e55e2d4c242dfe92d5d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b7ed50cb59c5de2cd1053e55e2d4c242dfe92d5d
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list