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