mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-25 05:04:58 +00:00
FIX:fixed users can not click drop-down menu on mac
Change-Id: Ib9ac9e323d70f5be32a7d1bd935effba974ef006
This commit is contained in:
@@ -50,6 +50,11 @@ void SidePopup::Popup(wxWindow* focus)
|
||||
}
|
||||
if (focus) {
|
||||
wxPoint pos = focus->ClientToScreen(wxPoint(0, -6));
|
||||
|
||||
#ifdef __APPLE__
|
||||
pos.x = pos.x - FromDIP(20);
|
||||
#endif // __APPLE__
|
||||
|
||||
if (pos.x + max_width > screenwidth)
|
||||
Position({pos.x - (pos.x + max_width - screenwidth),pos.y}, {0, focus->GetSize().y + 12});
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user