mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 01:46:01 +08:00
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:
parent
3b253f3bb4
commit
d580c2bdb4
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user