diff options
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r-- | Userland/Libraries/LibGUI/Button.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Button.cpp b/Userland/Libraries/LibGUI/Button.cpp index 3255d4cf4c..ecbd3e8fc3 100644 --- a/Userland/Libraries/LibGUI/Button.cpp +++ b/Userland/Libraries/LibGUI/Button.cpp @@ -189,7 +189,10 @@ void Button::set_menu(RefPtr<GUI::Menu> menu) void Button::mousedown_event(MouseEvent& event) { if (m_menu) { - m_menu->popup(screen_relative_rect().top_left()); + if (button_style() == Gfx::ButtonStyle::Tray) + m_menu->popup(screen_relative_rect().top_right()); + else + m_menu->popup(screen_relative_rect().top_left()); update(); return; } |