From 24ce050a914eca0cce25ba52311e9d075646aef7 Mon Sep 17 00:00:00 2001 From: Tao Wang Date: Tue, 25 Oct 2022 17:41:13 +0800 Subject: [PATCH] FIX:fixed the menu popup in the wrong position when multiple screens Change-Id: I1cb1124b2c1898fd650ec0eb750fbfc9e36bee72 --- src/slic3r/GUI/BBLTopbar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/BBLTopbar.cpp b/src/slic3r/GUI/BBLTopbar.cpp index 801a5a6862..3cc0f058b1 100644 --- a/src/slic3r/GUI/BBLTopbar.cpp +++ b/src/slic3r/GUI/BBLTopbar.cpp @@ -539,7 +539,7 @@ void BBLTopbar::OnFileToolItem(wxAuiToolBarEvent& evt) tb->SetToolSticky(evt.GetId(), true); if (!m_skip_popup_file_menu) { - this->PopupMenu(m_file_menu, wxPoint(0, this->GetSize().GetHeight() - 2)); + this->PopupMenu(m_file_menu, wxPoint(FromDIP(1), this->GetSize().GetHeight() - 2)); } else { m_skip_popup_file_menu = false; @@ -556,7 +556,7 @@ void BBLTopbar::OnDropdownToolItem(wxAuiToolBarEvent& evt) tb->SetToolSticky(evt.GetId(), true); if (!m_skip_popup_dropdown_menu) { - PopupMenu(&m_top_menu, wxPoint(0, this->GetSize().GetHeight() - 2)); + PopupMenu(&m_top_menu, wxPoint(FromDIP(1), this->GetSize().GetHeight() - 2)); } else { m_skip_popup_dropdown_menu = false;