ladybird/UI
Timothy Flynn ebaad09b1b UI/Qt: Correctly adjust hamburger menu positioning on first open
The HamburgerMenu subclass overrode showEvent() to reposition the menu
using move() after QMenu::popup() had already shown it. On the first
open, rect().width() could return a stale value, causing the menu to
appear detached from the button and truncated to a single item. The
move() call also bypassed Qt's screen boundary adjustments.

Instead, we can replace the HamburgerMenu with a normal QMenu, and use a
custom HamburgerButton class for the menu's tool button. In this class,
we override mousePressEvent() to call popup() with the correct right-
aligned position before the menu is shown. This lets Qt manage sizing
and screen boundaries correctly.
2026-03-17 07:12:05 -04:00
..
Android LibWeb: Flatten Platform::FontPlugin by merging WebView::FontPlugin 2026-02-28 15:32:14 +01:00
AppKit UI/AppKit+LibWeb: Handle the Ctrl+click context menu in EventHandler 2026-03-17 04:01:29 -05:00
cmake LibWeb+LibWebView+UI: Add a context menu item to toggle fullscreen state 2026-03-01 15:41:43 -06:00
Icons Everywhere: Move the Ladybird folder to UI 2024-11-10 12:50:45 +01:00
Qt UI/Qt: Correctly adjust hamburger menu positioning on first open 2026-03-17 07:12:05 -04:00
.gitignore Everywhere: Move the Ladybird folder to UI 2024-11-10 12:50:45 +01:00
CMakeLists.txt LibWebView+UI: Move the UI event loops to the UI folder 2025-12-05 14:24:05 -05:00
Info.plist Everywhere: Move the Ladybird folder to UI 2024-11-10 12:50:45 +01:00