From c41ccedad09eeaa62c120c53324c39e0817dd900 Mon Sep 17 00:00:00 2001 From: tao wang Date: Sat, 10 Dec 2022 10:41:50 +0800 Subject: [PATCH] FIX:fixed the wrong popup pos of printer list dialog Change-Id: Ie69bcac45c7595a8568018633ba3691abd77377c --- src/slic3r/GUI/Monitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Monitor.cpp b/src/slic3r/GUI/Monitor.cpp index e4ea80113..11ce35cb3 100644 --- a/src/slic3r/GUI/Monitor.cpp +++ b/src/slic3r/GUI/Monitor.cpp @@ -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__