remove SetSizeHints from dialog creation

Calling SetSizeHints is discouraged in wxDialogs per https://docs.wxwidgets.org/trunk/classwx_window.html#a307329dc3b10f5584aeb2cbce9293ffd

With this call enabled, the html window was not being accounted for when the window was resized during creation.

Fixes #933
This commit is contained in:
Kenneth Lorthioir 2021-02-20 21:25:50 -05:00 committed by remi durand
parent 3b253f3bb4
commit d580c2bdb4

View File

@ -68,7 +68,6 @@ void CalibrationAbstractDialog::create(std::string html_path, wxSize dialog_size
main_sizer->Add(buttons, 0, wxEXPAND | wxALL, 5);
SetSizer(main_sizer);
main_sizer->SetSizeHints(this);
this->SetSize(dialog_size.x, dialog_size.y);
}