Skip to content

Commit

Permalink
Fix Fl_Cocoa_Window_Driver::resize when called before the window is s…
Browse files Browse the repository at this point in the history
…how()'n.
  • Loading branch information
ManoloFLTK committed Feb 7, 2020
1 parent d068fbf commit 83bd04e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Fl_cocoa.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3287,6 +3287,7 @@ static NSUInteger calc_win_style(Fl_Window *win) {
if (!pWindow->shown() && (X != x() || Y != y())) force_position(1);
if (view_resized() || !visible_r()) {
pWindow->Fl_Group::resize(X, Y, W, H);
if (!pWindow->shown()) pWindow->init_sizes();
} else {
NSPoint pt = FLTKtoCocoa(pWindow, X, Y, H);
FLWindow *xid = fl_xid(pWindow);
Expand Down

0 comments on commit 83bd04e

Please sign in to comment.