mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
FIX:fixed multiple monitors not being maximized correctly
Change-Id: Idcaddcd5bbd483e14d290e9658da0283d33028fc
This commit is contained in:
parent
9a640be43c
commit
252aa91ae7
1 changed files with 6 additions and 0 deletions
|
@ -493,6 +493,9 @@ void BBLTopbar::OnFullScreen(wxAuiToolBarEvent& event)
|
|||
m_frame->Restore();
|
||||
}
|
||||
else {
|
||||
wxDisplay display(wxDisplay::GetFromWindow(this));
|
||||
auto size = display.GetClientArea().GetSize();
|
||||
m_frame->SetMaxSize(size + wxSize{16, 16});
|
||||
m_normalRect = m_frame->GetRect();
|
||||
m_frame->Maximize();
|
||||
}
|
||||
|
@ -516,6 +519,9 @@ void BBLTopbar::OnMouseLeftDClock(wxMouseEvent& mouse)
|
|||
m_frame->Restore();
|
||||
}
|
||||
else {
|
||||
wxDisplay display(wxDisplay::GetFromWindow(this));
|
||||
auto size = display.GetClientArea().GetSize();
|
||||
m_frame->SetMaxSize(size + wxSize{16, 16});
|
||||
m_normalRect = m_frame->GetRect();
|
||||
m_frame->Maximize();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue