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


Commits:
80840011 by Serhii Bykov at 2026-05-06T10:09:22+02:00
macosx: fix media source table view missing scroll inset

- - - - -


2 changed files:

- modules/gui/macosx/library/media-source/VLCLibraryMediaSourceViewController.m
- modules/gui/macosx/library/media-source/VLCMediaSourceBaseDataSource.m


Changes:

=====================================
modules/gui/macosx/library/media-source/VLCLibraryMediaSourceViewController.m
=====================================
@@ -140,6 +140,10 @@
     _collectionViewScrollView.automaticallyAdjustsContentInsets = NO;
     _collectionViewScrollView.contentInsets = defaultInsets;
     _collectionViewScrollView.scrollerInsets = scrollerInsets;
+
+    _tableViewScrollView.automaticallyAdjustsContentInsets = NO;
+    _tableViewScrollView.contentInsets = NSEdgeInsetsMake(0, 0, 
defaultInsets.bottom, 0);
+    _tableViewScrollView.scrollerInsets = NSEdgeInsetsMake(0, 0, 
-defaultInsets.bottom, 0);
 }
 
 - (void)setupPlaceholderLabel


=====================================
modules/gui/macosx/library/media-source/VLCMediaSourceBaseDataSource.m
=====================================
@@ -587,8 +587,8 @@ referenceSizeForHeaderInSection:(NSInteger)section
     _collectionViewScrollView.scrollerInsets = scrollerInsets;
 
     _tableViewScrollView.automaticallyAdjustsContentInsets = NO;
-    _tableViewScrollView.contentInsets =
-        NSEdgeInsetsMake(scrollViewsTopSpace + 
_tableViewScrollView.window.titlebarHeight, 0, 0, 0);
+    _tableViewScrollView.contentInsets = NSEdgeInsetsMake(scrollViewsTopSpace 
+ _tableViewScrollView.window.titlebarHeight, 0, scrollViewInsets.bottom, 0);
+    _tableViewScrollView.scrollerInsets = NSEdgeInsetsMake(0, 0, 
-scrollViewInsets.bottom, 0);
 }
 
 - (void)returnHome



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/808400110fbe8f8ad4986bd171328045e34fe7c3

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/808400110fbe8f8ad4986bd171328045e34fe7c3
You're receiving this email because of your account on code.videolan.org.


_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to