mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-06 01:06:06 +08:00
FIX:fixed the menu popup in the wrong position when multiple screens
Change-Id: I1cb1124b2c1898fd650ec0eb750fbfc9e36bee72
This commit is contained in:
parent
c5811178ae
commit
24ce050a91
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user