FIX:fixed the wrong popup pos of printer list dialog

Change-Id: Ie69bcac45c7595a8568018633ba3691abd77377c
This commit is contained in:
tao wang 2022-12-10 10:41:50 +08:00 committed by Lane.Wei
parent 24160244b7
commit c41ccedad0

View file

@ -320,9 +320,9 @@ void MonitorPanel::on_printer_clicked(wxMouseEvent &event)
wxPoint rect = m_side_tools->ClientToScreen(wxPoint(0, 0));
if (!m_side_tools->is_in_interval()) {
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.x = pos.x < 0? 0:pos.x;
//pos.x = pos.x < 0? 0:pos.x;
m_select_machine.Position(pos, wxSize(0, 0));
#ifdef __linux__