diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-12-16 08:06:41 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-12-16 08:06:41 +0100 |
| commit | 2ddb27f0f293eb0e57e32194e4f48c72614500ab (patch) | |
| tree | e0f82bdd9dc1028b8030a1bd937d3671c6e65eac /src | |
| parent | 44a2547394a3b4f8b0177c2f33aa8ed47a2c1051 (diff) | |
Fix for "Recent macos build issues" (#598)
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Native_File_Chooser_MAC.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Native_File_Chooser_MAC.mm b/src/Fl_Native_File_Chooser_MAC.mm index e68e15b03..a0ef1ac74 100644 --- a/src/Fl_Native_File_Chooser_MAC.mm +++ b/src/Fl_Native_File_Chooser_MAC.mm @@ -574,7 +574,8 @@ static NSPopUpButton *createPopupAccessory(NSSavePanel *panel, const char *filte NSView *view = [[[NSView alloc] initWithFrame:rectview] autorelease]; NSRect rectbox = NSMakeRect(0, 3, 140, 20 ); // the "Show hidden files" button - NSRect hidden_files_rect = {{150, (filter ? 35 : 0)}, {80, 30}}; + NSRect hidden_files_rect = {{150, 0}, {80, 30}}; + if (filter) hidden_files_rect.origin.y = 35; NSButton *hidden_files = [[[NSButton alloc] initWithFrame:hidden_files_rect] autorelease]; [hidden_files setButtonType: #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_12 |
