Merge pull request #3188 from daboe01/windowcontenviewfix

Fixed: CPWindow setContentView: overlapping the toolbar
This commit is contained in:
daboe01 authored and GitHub committed 2026-02-22 16:30:25 +01:00
commit f31ac7cf21
1 file changed
+4
+4
View File
@@ -1266,6 +1266,10 @@ CPTexturedBackgroundWindowMask
[_contentView setAutoresizingMask:CPViewWidthSizable | CPViewHeightSizable];
[_windowView addSubview:_contentView];
// The window view manages the exact layout of the content view (e.g. offsetting for the toolbar).
if ([_windowView respondsToSelector:@selector(tile)])
[_windowView tile];
/*
If the initial first responder has been set to something other than
the window, set it to the window because it will no longer be valid.