FIX:fixed the blocking module of linux

Change-Id: I06b357f9592631a729208514a3239f944a98cc96
This commit is contained in:
Tao Wang 2022-09-21 19:44:18 +08:00 committed by Lane.Wei
parent 851b6d6304
commit 6633ef4acf
9 changed files with 59 additions and 36 deletions

View file

@ -319,6 +319,13 @@ void MonitorPanel::on_printer_clicked(wxMouseEvent &event)
wxPoint pos = m_side_tools->ClientToScreen(wxPoint(0, 0));
pos.y += m_side_tools->GetRect().height;
m_select_machine.Position(pos, wxSize(0, 0));
#ifdef __linux__
m_select_machine.SetSize(wxSize(m_side_tools->GetSize().x, -1));
m_select_machine.SetMaxSize(wxSize(m_side_tools->GetSize().x, -1));
m_select_machine.SetMinSize(wxSize(m_side_tools->GetSize().x, -1));
#endif
m_select_machine.Popup();
}
}