diff --git a/src/gui/about_window.cpp b/src/gui/about_window.cpp index fc1f4bcb..e58e6def 100644 --- a/src/gui/about_window.cpp +++ b/src/gui/about_window.cpp @@ -27,6 +27,10 @@ AboutWindow::AboutWindow(Window* parent) ok_button->Move(ws.GetWidth() - bs.GetWidth(), ws.GetHeight() - bs.GetHeight()); // align bottom right } +bool AboutWindow::Layout() { + return false; +} + void AboutWindow::onPaint(wxPaintEvent& ev) { wxBufferedPaintDC dc(this); draw(dc); diff --git a/src/gui/about_window.hpp b/src/gui/about_window.hpp index eeff0b59..322cc151 100644 --- a/src/gui/about_window.hpp +++ b/src/gui/about_window.hpp @@ -15,10 +15,14 @@ /// Nice about dialog class AboutWindow : public wxDialog { - public: +public: AboutWindow(Window* parent); + + // Note: for some stupid reason, wxWindow::Layout makes the child of a window with a single child the same size as the whole window, + // we do not want that. + bool Layout() override; - private: +private: DECLARE_EVENT_TABLE(); // MSE logos