Commit 5067f2ca authored by Dana Fried's avatar Dana Fried Committed by Commit Bot

Fix layout issue with overflow extensions view.

Bug: 913274
Change-Id: I8ca09d553d4cce55887604f07300aa0685a7f498
Reviewed-on: https://chromium-review.googlesource.com/c/1372309Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Dana Fried <dfried@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615662}
parent 0af9e092
......@@ -619,6 +619,10 @@ void MenuItemView::Layout() {
View* child = child_at(0);
gfx::Size size = child->GetPreferredSize();
child->SetBounds(0, GetTopMargin(), size.width(), size.height());
// TODO(crbug/913998): this is a hack. We should change
// ExtensionToolbarMenuView so that it does not move itself when laid out,
// and accomplish the same thing via insets or similar.
child->Layout();
} else {
// Child views are laid out right aligned and given the full height. To
// right align start with the last view and progress to the first.
......
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