Commit 394208b1 authored by estade's avatar estade Committed by Commit bot

[MD] Fix bookmark bar button overflow during bar animation.

BUG=595167

Review URL: https://codereview.chromium.org/1804343002

Cr-Commit-Position: refs/heads/master@{#381528}
parent 003382e4
......@@ -616,6 +616,13 @@ BookmarkBarView::BookmarkBarView(Browser* browser, BrowserView* browser_view)
set_id(VIEW_ID_BOOKMARK_BAR);
Init();
if (ui::MaterialDesignController::IsModeMaterial()) {
// Don't let the bookmarks show on top of the location bar while animating.
SetPaintToLayer(true);
layer()->SetFillsBoundsOpaquely(false);
layer()->SetMasksToBounds(true);
}
size_animation_.Reset(1);
}
......
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