Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
5075dc59 by Claudio Cambra at 2025-11-28T06:53:34+00:00
macosx: Fix path control height on Tahoe
Signed-off-by: Claudio Cambra <[email protected]>
- - - - -
1 changed file:
- modules/gui/macosx/library/media-source/VLCLibraryMediaSourceViewController.m
Changes:
=====================================
modules/gui/macosx/library/media-source/VLCLibraryMediaSourceViewController.m
=====================================
@@ -162,7 +162,6 @@
NSButton * const homeButton = self.homeButton;
VLCInputNodePathControl * const pathControl = self.pathControl;
pathControl.translatesAutoresizingMaskIntoConstraints = NO;
- const CGFloat pathControlHeight = pathControl.frame.size.height;
_pathControlGlassEffectView = [[NSGlassEffectView alloc]
initWithFrame:self.pathControlVisualEffectView.frame];
self.pathControlGlassEffectView.translatesAutoresizingMaskIntoConstraints = NO;
@@ -174,17 +173,22 @@
[NSLayoutConstraint activateConstraints:@[
[self.pathControlGlassEffectView.leadingAnchor
constraintEqualToAnchor:self.mediaSourceView.leadingAnchor
constant:VLCLibraryUIUnits.smallSpacing],
[self.pathControlGlassEffectView.trailingAnchor
constraintEqualToAnchor:self.mediaSourceView.trailingAnchor
constant:-VLCLibraryUIUnits.smallSpacing],
- [self.pathControlGlassEffectView.heightAnchor
constraintEqualToConstant:pathControlHeight + (VLCLibraryUIUnits.smallSpacing *
2)],
]];
- NSView * const pathControlContainer = [[NSView alloc]
initWithFrame:pathControl.frame];
+ NSView * const pathControlContainer = [[NSView alloc] init];
+ pathControlContainer.translatesAutoresizingMaskIntoConstraints = NO;
+ homeButton.translatesAutoresizingMaskIntoConstraints = NO;
[pathControlContainer addSubview:homeButton];
[pathControlContainer addSubview:pathControl];
[NSLayoutConstraint activateConstraints:@[
[homeButton.leadingAnchor
constraintEqualToAnchor:pathControlContainer.leadingAnchor
constant:VLCLibraryUIUnits.smallSpacing],
[homeButton.centerYAnchor
constraintEqualToAnchor:pathControlContainer.centerYAnchor],
+ [homeButton.topAnchor
constraintGreaterThanOrEqualToAnchor:pathControlContainer.topAnchor
constant:VLCLibraryUIUnits.smallSpacing],
+ [homeButton.bottomAnchor
constraintLessThanOrEqualToAnchor:pathControlContainer.bottomAnchor
constant:-VLCLibraryUIUnits.smallSpacing],
[pathControl.leadingAnchor
constraintEqualToAnchor:homeButton.trailingAnchor
constant:VLCLibraryUIUnits.smallSpacing],
[pathControl.trailingAnchor
constraintEqualToAnchor:pathControlContainer.trailingAnchor
constant:-VLCLibraryUIUnits.smallSpacing],
[pathControl.centerYAnchor
constraintEqualToAnchor:pathControlContainer.centerYAnchor],
+ [pathControl.topAnchor
constraintGreaterThanOrEqualToAnchor:pathControlContainer.topAnchor
constant:VLCLibraryUIUnits.smallSpacing],
+ [pathControl.bottomAnchor
constraintLessThanOrEqualToAnchor:pathControlContainer.bottomAnchor
constant:-VLCLibraryUIUnits.smallSpacing],
]];
self.pathControlGlassEffectView.contentView = pathControlContainer;
#endif
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/5075dc59a8e0bd3d406e80def9b00867a39f85b4
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/5075dc59a8e0bd3d406e80def9b00867a39f85b4
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits