mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 18:37:58 +03:00
LibGUI: Make ComboBox list pop-up windows frameless
This is much better than the hack we had of making them Tooltip windows since frameless windows end up at the right layer in the window stack automatically, and always get yanked above the parent window simply by being child windows.
This commit is contained in:
parent
d847304cb9
commit
828aee9932
Notes:
sideshowbarker
2024-07-19 07:07:15 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/828aee9932c
@ -57,8 +57,7 @@ ComboBox::ComboBox()
|
||||
};
|
||||
|
||||
m_list_window = add<Window>();
|
||||
// FIXME: This is obviously not a tooltip window, but it's the closest thing to what we want atm.
|
||||
m_list_window->set_window_type(WindowType::Tooltip);
|
||||
m_list_window->set_frameless(true);
|
||||
|
||||
m_list_view = m_list_window->set_main_widget<ListView>();
|
||||
m_list_view->horizontal_scrollbar().set_visible(false);
|
||||
|
Loading…
Reference in New Issue
Block a user