[vlc-commits] [Git][videolan/vlc][master] macosx: Fix content insets in library audio collection view

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Thu Jul 14 07:59:48 UTC 2022



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


Commits:
22e03ff5 by Claudio Cambra at 2022-07-14T07:59:40+00:00
macosx: Fix content insets in library audio collection view

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryWindow.m
=====================================
@@ -346,7 +346,8 @@ static void addShadow(NSImageView *__unsafe_unretained imageView)
     [self repeatStateUpdated:nil];
     [self shuffleStateUpdated:nil];
     
-    const NSEdgeInsets scrollViewEdgeInsets = NSEdgeInsetsMake(16.0, 32.0, 0.0, 0.0);
+    // Need to account for the audio collection switcher at the top
+    const NSEdgeInsets scrollViewEdgeInsets = NSEdgeInsetsMake(32., 16., 16., 0.);
     
     _audioCollectionViewScrollView.automaticallyAdjustsContentInsets = NO;
     _audioCollectionViewScrollView.contentInsets = scrollViewEdgeInsets;



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/22e03ff5ac1c4bc71e18b59916fd696ddaac46e7
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