Skip to content

Commit

Permalink
Fix window size when {en,dis}abling status bar.
Browse files Browse the repository at this point in the history
If the status bar option is enabled or disabled, there is a trigger that
resizes the current window geometry to its zoom configuration. What
should happen instead is the size remain the same.
  • Loading branch information
denisfa authored and rkitover committed Jun 23, 2019
1 parent bf6f2d4 commit dcc0afa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wx/cmdevents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2594,7 +2594,8 @@ EVT_HANDLER(StatusBar, "Enable status bar")
mf->GetStatusBar()->Hide();

mf->SendSizeEvent();
panel->AdjustSize(true);
panel->AdjustSize(false);
mf->SendSizeEvent();
}

EVT_HANDLER(NoStatusMsg, "Disable on-screen status messages")
Expand Down

0 comments on commit dcc0afa

Please sign in to comment.