mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX:fixed popup wrong pos of the print menu on multiple displays
Change-Id: I9712244df4e0df9dcb5beedf4dd36e3a06fa9db6
This commit is contained in:
@@ -42,8 +42,12 @@ bool SidePopup::Show( bool show )
|
||||
void SidePopup::Popup(wxWindow* focus)
|
||||
{
|
||||
Create();
|
||||
int screenwidth = wxSystemSettings::GetMetric(wxSYS_SCREEN_X,NULL);
|
||||
auto drect = wxDisplay(GetParent()).GetGeometry();
|
||||
int screenwidth = drect.x + drect.width;
|
||||
//int screenwidth = wxSystemSettings::GetMetric(wxSYS_SCREEN_X,NULL);
|
||||
|
||||
int max_width = 0;
|
||||
|
||||
for (auto btn : btn_list)
|
||||
{
|
||||
max_width = std::max(btn->GetMinSize().x, max_width);
|
||||
|
||||
Reference in New Issue
Block a user