Skip to content

Commit

Permalink
Fix RecentFilesCtrl display on macOS 11
Browse files Browse the repository at this point in the history
Disable automaticallyAdjustsContentInsets, otherwise there would be extra space
above it in WelcomeWindow where the (hidden) toolbar would be.
vslavik committed Jan 4, 2021
1 parent 0e8f680 commit 850a331
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/recent_files.cpp
Original file line number Diff line number Diff line change
@@ -543,7 +543,10 @@ RecentFilesCtrl::RecentFilesCtrl(wxWindow *parent)
#endif

#ifdef __WXOSX__
NSTableView *tableView = (NSTableView*)[((NSScrollView*)GetHandle()) documentView];
NSScrollView *scrollView = (NSScrollView*)GetHandle();
scrollView.automaticallyAdjustsContentInsets = NO;

NSTableView *tableView = (NSTableView*)[scrollView documentView];
[tableView setIntercellSpacing:NSMakeSize(0.0, 0.0)];
const int icon_column_width = PX(32 + 12);
#else

0 comments on commit 850a331

Please sign in to comment.