mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-11 13:42:52 +00:00
LibGUI: Make the autocomplete box window a child of its editor's window
Fixes #4761.
This commit is contained in:
parent
6dbdbec835
commit
7f7656fe4e
Notes:
sideshowbarker
2024-07-19 00:10:53 +09:00
Author: https://github.com/alimpfard
Commit: 7f7656fe4e
Pull-request: https://github.com/SerenityOS/serenity/pull/4759
Reviewed-by: https://github.com/ADKaster
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue