[vlc-commits] [Git][videolan/vlc][master] macosx: Fix top inset for library songs table view
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Sun Sep 28 19:08:21 UTC 2025
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
401db9c5 by Claudio Cambra at 2025-09-28T18:50:23+00:00
macosx: Fix top inset for library songs table view
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/library/audio-library/VLCLibraryAudioViewController.m
Changes:
=====================================
modules/gui/macosx/library/audio-library/VLCLibraryAudioViewController.m
=====================================
@@ -281,9 +281,10 @@ NSString *VLCLibraryPlaceholderAudioViewIdentifier = @"VLCLibraryPlaceholderAudi
// Songs table view needs bottom padding for controls bar
const CGFloat controlsBarHeight = VLCLibraryUIUnits.libraryWindowControlsBarHeight;
const CGFloat controlsBarPadding = VLCLibraryUIUnits.largeSpacing * 2;
- NSClipView *clipView = _audioSongTableViewScrollView.contentView;
+ NSClipView * const clipView = _audioSongTableViewScrollView.contentView;
+ const CGFloat topInset = self.libraryWindow.titlebarHeight + self.audioSongTableView.headerView.frame.size.height;
clipView.automaticallyAdjustsContentInsets = NO;
- clipView.contentInsets = NSEdgeInsetsMake(0, 0, controlsBarHeight + controlsBarPadding, 0);
+ clipView.contentInsets = NSEdgeInsetsMake(topInset, 0, controlsBarHeight + controlsBarPadding, 0);
}
#pragma mark - Superclass property overrides
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/401db9c510261836de7aa032cf4cc14c4edcf54d
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/401db9c510261836de7aa032cf4cc14c4edcf54d
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