[vlc-commits] [Git][videolan/vlc][master] macos: Fix supplementary detail view arrow positioning in groups
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Sep 2 07:06:27 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
3ff538b0 by Bob Moriasi at 2025-09-02T06:27:04+00:00
macos: Fix supplementary detail view arrow positioning in groups
- - - - -
1 changed file:
- modules/gui/macosx/library/VLCLibraryCollectionViewFlowLayout.m
Changes:
=====================================
modules/gui/macosx/library/VLCLibraryCollectionViewFlowLayout.m
=====================================
@@ -194,6 +194,25 @@ static CVReturn detailViewAnimationCallback(CVDisplayLinkRef displayLink,
[self.collectionView.animator scrollRectToVisible:frame];
} else {
_animationIsCollapse = NO;
+
+ if ([self.collectionView.dataSource conformsToProtocol:@protocol(VLCLibraryCollectionViewDataSource)]) {
+ id<VLCLibraryCollectionViewDataSource> const libraryDataSource =
+ (id<VLCLibraryCollectionViewDataSource>)self.collectionView.dataSource;
+ NSString * const supplementaryDetailViewKind = libraryDataSource.supplementaryDetailViewKind;
+ if (supplementaryDetailViewKind != nil && supplementaryDetailViewKind.length > 0) {
+ NSSet<NSIndexPath *> * const visibleSupplementaryIndexPaths =
+ [self.collectionView indexPathsForVisibleSupplementaryElementsOfKind:supplementaryDetailViewKind];
+
+ for (NSIndexPath * const supplementaryIndexPath in visibleSupplementaryIndexPaths) {
+ VLCLibraryCollectionViewSupplementaryDetailView * const supplementaryView =
+ (VLCLibraryCollectionViewSupplementaryDetailView *)[self.collectionView supplementaryViewForElementKind:supplementaryDetailViewKind atIndexPath:supplementaryIndexPath];
+ if (supplementaryView != nil) {
+ supplementaryView.selectedItem = [self.collectionView itemAtIndexPath:indexPath];
+ supplementaryView.needsDisplay = YES;
+ }
+ }
+ }
+ }
}
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3ff538b0e3a9e932f86e37b7ce8bfdf325890641
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3ff538b0e3a9e932f86e37b7ce8bfdf325890641
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