1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-15 12:27:35 +00:00

LibGUI: Make the autocomplete box window a child of its editor's window

Fixes #4761.
This commit is contained in:
AnotherTest 2021-01-03 03:20:49 +03:30 committed by Andreas Kling
parent 6dbdbec835
commit 7f7656fe4e

View file

@ -103,7 +103,7 @@ AutocompleteBox::~AutocompleteBox() { }
AutocompleteBox::AutocompleteBox(TextEditor& editor)
: m_editor(editor)
{
m_popup_window = GUI::Window::construct();
m_popup_window = GUI::Window::construct(m_editor->window());
m_popup_window->set_window_type(GUI::WindowType::Tooltip);
m_popup_window->set_rect(0, 0, 200, 100);