Skip to content

Commit

Permalink
macosx: Disable dynamic collection view item sizing in horizontal car…
Browse files Browse the repository at this point in the history
…ousel video collection view

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra authored and fkuehne committed Dec 25, 2022
1 parent 6279fcd commit 274ac2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ - (void)setupCollectionView
{
_collectionViewLayout = [[VLCLibraryCollectionViewFlowLayout alloc] init];
_collectionViewLayout.headerReferenceSize = [VLCLibraryCollectionViewSupplementaryElementView defaultHeaderSize];
_collectionViewLayout.itemSize = CGSizeMake(214., 260.);

_collectionView = [[NSCollectionView alloc] initWithFrame:NSZeroRect];
_collectionView.postsFrameChangedNotifications = YES;
Expand Down Expand Up @@ -156,6 +155,7 @@ - (void)setGroupDescriptor:(VLCLibraryVideoCollectionViewGroupDescriptor *)group
NSCollectionViewScrollDirectionHorizontal :
NSCollectionViewScrollDirectionVertical;
_scrollView.scrollSelf = _groupDescriptor.isHorizontalBarCollectionView;
_collectionViewDelegate.dynamicItemSizing = !_groupDescriptor.isHorizontalBarCollectionView;
}

- (void)setVideoGroup:(VLCLibraryVideoGroup)group
Expand Down

0 comments on commit 274ac2e

Please sign in to comment.