FIX:set popup position change to move popup

Change-Id: I3417416dc6de4a40674f1ac98c4ba4fa593f3297
(cherry picked from commit a19bbf818974ff4a1136ebe661ef3e47ab118486)
This commit is contained in:
tao wang 2022-12-15 11:16:38 +08:00 committed by lane.wei
parent 921148db2f
commit 93ab4780c3

View File

@ -324,7 +324,7 @@ void MonitorPanel::on_printer_clicked(wxMouseEvent &event)
wxPoint pos = m_side_tools->ClientToScreen(wxPoint(0, 0)); wxPoint pos = m_side_tools->ClientToScreen(wxPoint(0, 0));
pos.y += m_side_tools->GetRect().height; pos.y += m_side_tools->GetRect().height;
//pos.x = pos.x < 0? 0:pos.x; //pos.x = pos.x < 0? 0:pos.x;
m_select_machine.Position(pos, wxSize(0, 0)); m_select_machine.Move(pos);
#ifdef __linux__ #ifdef __linux__
m_select_machine.SetSize(wxSize(m_side_tools->GetSize().x, -1)); m_select_machine.SetSize(wxSize(m_side_tools->GetSize().x, -1));