Skip to content

Commit 17d678a

Browse files
ktranDevtools-frontend LUCI CQ
authored and
Devtools-frontend LUCI CQ
committed
Update context menu x position
This CL changes the position of the menu button. Fixed: 328690286 Change-Id: I351196f9d36cb2d917d0692c3b882bb53fcff19d Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6429847 Reviewed-by: Kateryna Prokopenko <kprokopenko@chromium.org> Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
1 parent 1598b87 commit 17d678a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

front_end/ui/legacy/Toolbar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ export class ToolbarMenuButton extends ToolbarItem<ToolbarButton.EventTypes> {
10721072
const contextMenu = new ContextMenu(event, {
10731073
useSoftMenu: this.useSoftMenu,
10741074
keepOpen: this.keepOpen,
1075-
x: this.element.getBoundingClientRect().left,
1075+
x: this.element.getBoundingClientRect().right,
10761076
y: this.element.getBoundingClientRect().top + this.element.offsetHeight,
10771077
// Without adding a delay, pointer events will be un-ignored too early, and a single click causes
10781078
// the context menu to be closed and immediately re-opened on Windows (https://crbug.com/339560549).

0 commit comments

Comments
 (0)