Skip to content
Permalink
Browse files

Fix window size when {en,dis}abling status bar.

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 4, 2019
1 parent bf6f2d4 commit dcc0afa0d46633bcdae25f6c2d5fbe52ebe1e1f1
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/wx/cmdevents.cpp
@@ -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")

0 comments on commit dcc0afa

Please sign in to comment.
You can’t perform that action at this time.