Actions
Bug #14824
open
RP
Bootstrap 3: WPopupMenu does not align with its parent
Bug #14824:
Bootstrap 3: WPopupMenu does not align with its parent
Start date:
09/17/2026
Due date:
% Done:
0%
Estimated time:
Description
When using Wt with the Bootstrap 3 theme, a Wt::WPopupMenu attached to an item in a right-aligned navigation menu is positioned at the far left edge of the page instead of directly below its menu item.
Steps to reproduce¶
- Create a
Wt::WNavigationBar. - Add a
Wt::WMenuwithWt::AlignmentFlag::Right. - Add a
Wt::WMenuItemto that menu. - Attach a
Wt::WPopupMenuto the menu item usingWMenuItem::setMenu(). - Run the application with
Wt::WBootstrap3Theme. - Click the menu item.
Expected behavior¶
The popup menu should appear directly below, and horizontally aligned with, the menu item that opened it.
Actual behavior¶
The popup is displayed to the left of the right-aligned menu area, but it is not aligned with the menu item that opened it. Its position is determined by the navbar’s CSS rather than by the triggering WMenuItem.
The likely conflict is Bootstrap 3's rule:
This rule changes the popup’s horizontal positioning after Wt calculates its location.
This is not applicable to Bootstrap 5 or a default theme.
RM Updated by Romain Mardulyn about 4 hours ago
- Status changed from New to InProgress
- Assignee set to Romain Mardulyn
RM Updated by Romain Mardulyn about 1 hour ago
- Status changed from InProgress to Review
- Assignee deleted (
Romain Mardulyn)
Actions