mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
FIX:fixed clicking on first item has no effect in search dialog
Change-Id: Ifdbbf06a8b5c780155e394003470f6fa39a2b4c2
This commit is contained in:
parent
efec8fef2f
commit
0761cbd1cb
2 changed files with 3 additions and 3 deletions
|
@ -365,8 +365,8 @@ void OptionsSearcher::show_dialog(Preset::Type type, wxWindow *parent, wxTextCtr
|
|||
{
|
||||
if (parent == nullptr || input == nullptr) return;
|
||||
auto search_dialog = new SearchDialog(this, type, parent, input, ssearch_btn);
|
||||
wxPoint pos = parent->ClientToScreen(wxPoint(0, 0));
|
||||
pos.y += parent->GetRect().height;
|
||||
wxPoint pos = input->GetParent()->ClientToScreen(wxPoint(0, 0));
|
||||
pos.y += input->GetParent()->GetRect().height;
|
||||
search_dialog->SetPosition(pos);
|
||||
search_dialog->Popup();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue