FIX:fixed the wrong popup pos of printer list dialog
Change-Id: Ie69bcac45c7595a8568018633ba3691abd77377c
This commit is contained in:
parent
24160244b7
commit
c41ccedad0
1 changed files with 2 additions and 2 deletions
|
@ -320,9 +320,9 @@ void MonitorPanel::on_printer_clicked(wxMouseEvent &event)
|
|||
wxPoint rect = m_side_tools->ClientToScreen(wxPoint(0, 0));
|
||||
|
||||
if (!m_side_tools->is_in_interval()) {
|
||||
wxPoint pos = m_side_tools->ClientToScreen(wxPoint(0, 0));
|
||||
wxPoint pos = m_side_tools->ClientToScreen(wxPoint(0, 0));
|
||||
pos.y += m_side_tools->GetRect().height;
|
||||
pos.x = pos.x < 0? 0:pos.x;
|
||||
//pos.x = pos.x < 0? 0:pos.x;
|
||||
m_select_machine.Position(pos, wxSize(0, 0));
|
||||
|
||||
#ifdef __linux__
|
||||
|
|
Loading…
Reference in a new issue