From 16b8d41a43a22c31ff482f45ac718021e57c91c5 Mon Sep 17 00:00:00 2001 From: Aleksey Lobanov Date: Tue, 16 Jun 2015 23:37:35 +0300 Subject: [PATCH] Added automatic recacalculating sizes after preview drawing --- wxCrossGen/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wxCrossGen/main.cpp b/wxCrossGen/main.cpp index 171e61a..805dfd7 100644 --- a/wxCrossGen/main.cpp +++ b/wxCrossGen/main.cpp @@ -101,6 +101,7 @@ void MainFrame::SetGridImage(GridType &grid, size_t w) { dc.SelectObject( wxNullBitmap ); this->Refresh(); + this->GetSizer()->RecalcSizes(); } void MainFrame::onGenerateClick(wxCommandEvent &event) {