mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:45:07 +00: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
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue