mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibGUI: Make sure combobox list windows can't be moved
This is done by adding a new window type (Popup) and using it for the combobox list window. Other incorrect uses of the Tooltip window type have also been updated to use the new window type.
This commit is contained in:
parent
419eb7ab97
commit
288c46dbdc
Notes:
sideshowbarker
2024-07-17 05:05:36 +09:00
Author: https://github.com/gunnarbeutner
Commit: 288c46dbdc
Pull-request: https://github.com/SerenityOS/serenity/pull/15782
Reviewed-by: https://github.com/linusg ✅
6 changed files with 10 additions and 3 deletions
|
@ -88,7 +88,7 @@ AutocompleteBox::AutocompleteBox(TextEditor& editor)
|
|||
: m_editor(editor)
|
||||
{
|
||||
m_popup_window = GUI::Window::construct(m_editor->window());
|
||||
m_popup_window->set_window_type(GUI::WindowType::Tooltip);
|
||||
m_popup_window->set_window_type(GUI::WindowType::Popup);
|
||||
m_popup_window->set_rect(0, 0, 175, 25);
|
||||
|
||||
auto& main_widget = m_popup_window->set_main_widget<GUI::Widget>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue