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 <[email protected]>
- - - - -
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_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits