diff --git a/src/slic3r/GUI/Search.cpp b/src/slic3r/GUI/Search.cpp index 9f0277d9bf..6c40348949 100644 --- a/src/slic3r/GUI/Search.cpp +++ b/src/slic3r/GUI/Search.cpp @@ -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(); } diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index d3d19f2ad8..f1bc8df942 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -316,7 +316,7 @@ void Tab::create_preset_tab() this->GetParent()->Update(); this->GetParent()->Layout(); - wxGetApp().plater()->search(false, m_type, m_search_item, m_search_input, m_btn_search); + wxGetApp().plater()->search(false, m_type, m_top_panel->GetParent(), m_search_input, m_btn_search); m_search_input->SetFocus(); Thaw();