mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 03:19:06 +08:00
Fix main frame window restore position on Mac #493
This commit is contained in:
parent
bd80304f39
commit
a7c876a9bb
@ -70,8 +70,14 @@ wxFrame(NULL, wxID_ANY, SLIC3R_BUILD, wxDefaultPosition, wxDefaultSize, wxDEFAUL
|
|||||||
sizer->SetSizeHints(this);
|
sizer->SetSizeHints(this);
|
||||||
SetSizer(sizer);
|
SetSizer(sizer);
|
||||||
Fit();
|
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));
|
SetMinSize(wxSize(760, 490));
|
||||||
SetSize(GetMinSize());
|
SetSize(GetMinSize());
|
||||||
|
#endif
|
||||||
Layout();
|
Layout();
|
||||||
|
|
||||||
// declare events
|
// declare events
|
||||||
|
Loading…
x
Reference in New Issue
Block a user