mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 09:04:28 +08:00
FIX:fixed popup wrong pos of the print menu on multiple displays
Change-Id: I9712244df4e0df9dcb5beedf4dd36e3a06fa9db6
This commit is contained in:
parent
b81a26d019
commit
ab49516ec1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user