mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 12:17:54 -06:00
Do not limit the max window size (#3149)
Do not limit the max window size (#2889) Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
parent
eeef52bf5d
commit
6bb0d5ec30
2 changed files with 8 additions and 26 deletions
|
@ -531,15 +531,6 @@ void BBLTopbar::OnFullScreen(wxAuiToolBarEvent& event)
|
|||
m_frame->Restore();
|
||||
}
|
||||
else {
|
||||
wxDisplay display(this);
|
||||
auto size = display.GetClientArea().GetSize();
|
||||
#ifdef __WXMSW__
|
||||
HWND hWnd = m_frame->GetHandle();
|
||||
RECT borderThickness;
|
||||
SetRectEmpty(&borderThickness);
|
||||
AdjustWindowRectEx(&borderThickness, GetWindowLongPtr(hWnd, GWL_STYLE), FALSE, 0);
|
||||
m_frame->SetMaxSize(size + wxSize{-borderThickness.left + borderThickness.right, -borderThickness.top + borderThickness.bottom});
|
||||
#endif // __WXMSW__
|
||||
m_normalRect = m_frame->GetRect();
|
||||
m_frame->Maximize();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue