Fix main frame window restore position on Mac #493

This commit is contained in:
Vojtech Kral 2019-01-21 17:36:25 +01:00
parent bd80304f39
commit a7c876a9bb

View file

@ -70,8 +70,14 @@ wxFrame(NULL, wxID_ANY, SLIC3R_BUILD, wxDefaultPosition, wxDefaultSize, wxDEFAUL
sizer->SetSizeHints(this);
SetSizer(sizer);
Fit();
#ifdef __APPLE__
// Using SetMinSize() on Mac messes up the window position in some cases
// cf. https://groups.google.com/forum/#!topic/wx-users/yUKPBBfXWO0
SetSize(wxSize(760, 490));
#else
SetMinSize(wxSize(760, 490));
SetSize(GetMinSize());
#endif
Layout();
// declare events