Commit 216b9b21 authored by Russell Hawkins's avatar Russell Hawkins Committed by Chromium LUCI CQ

Run set_adjust_if_offscreen(true) after group editor bubble is created so that...

Run set_adjust_if_offscreen(true) after group editor bubble is created so that it doesn't go offscreen.

Bug: 1162253
Change-Id: Ic9161cc65ea2ae2a00a925c5db4c93514ee002ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2638248
Commit-Queue: Russell Hawkins <thatguyrussell@google.com>
Reviewed-by: default avatarCharlene Yan <cyan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845368}
parent a67793a1
......@@ -61,10 +61,13 @@ views::Widget* TabGroupEditorBubbleView::Show(
views::View* anchor_view,
bool stop_context_menu_propagation) {
// If |header_view| is not null, use |header_view| as the |anchor_view|.
views::Widget* const widget =
BubbleDialogDelegateView::CreateBubble(new TabGroupEditorBubbleView(
BubbleDialogDelegateView* tab_group_editor_bubble_view =
new TabGroupEditorBubbleView(
browser, group, header_view ? header_view : anchor_view, anchor_rect,
header_view, stop_context_menu_propagation));
header_view, stop_context_menu_propagation);
views::Widget* const widget =
BubbleDialogDelegateView::CreateBubble(tab_group_editor_bubble_view);
tab_group_editor_bubble_view->set_adjust_if_offscreen(true);
widget->Show();
return widget;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment