Fix for #6958 - GUI Setting non modal window: Search broken when main window hidden (minimized)

This commit is contained in:
YuSanka 2021-09-22 15:53:19 +02:00
parent e477903d3e
commit e48c320f6d
3 changed files with 22 additions and 9 deletions

View file

@ -6536,12 +6536,7 @@ void Plater::search(bool plater_is_active)
canvas3D()->on_char(evt);
}
else
{
wxPoint pos = this->ClientToScreen(wxPoint(0, 0));
pos.x += em_unit(this) * 40;
pos.y += em_unit(this) * 4;
p->sidebar->get_searcher().search_dialog->Popup(pos);
}
p->sidebar->get_searcher().show_dialog();
}
void Plater::msw_rescale()