Skip to content

Commit

Permalink
fix clipping subviews
Browse files Browse the repository at this point in the history
With macOS 14 the default value of NSView.clipToBounds has changed from YES to NO. (Why changing the default and not just fixing the clipping issue and promoting the fix, is beyond me)
  • Loading branch information
scheffle committed Oct 22, 2023
1 parent 4728884 commit 8f3344f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vstgui/contrib/externalview_nsview.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ struct ExternalNSViewBase : ViewAdapter
NSView* container {[ExternalViewContainerNSView::alloc () initWithFrame: {0., 0., 10., 10.}]};
ViewType* view {nullptr};

ExternalNSViewBase (ViewType* inView) : view (inView) { [container addSubview:view]; }
ExternalNSViewBase (ViewType* inView) : view (inView)
{
container.clipsToBounds = YES;
[container addSubview:view];
}

#if !__has_feature(objc_arc)
virtual ~ExternalNSViewBase () noexcept
Expand Down

0 comments on commit 8f3344f

Please sign in to comment.