Commit b6be2bba authored by Andrew Xu's avatar Andrew Xu Committed by Commit Bot

Set overflow bubble with the correct radius

The wrong radius was set by the culprit CL (crrev.com/c/1806015).
This CL fixes such an issue.

Bug: 1011013
Change-Id: I10659f593914fa3bdea0ca8b0f6f8bbb141c000f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1865480
Commit-Queue: Andrew Xu <andrewxu@chromium.org>
Reviewed-by: default avatarManu Cornet <manucornet@chromium.org>
Cr-Commit-Position: refs/heads/master@{#706581}
parent 652c1492
...@@ -236,7 +236,7 @@ OverflowBubbleView::OverflowBubbleView(ShelfView* shelf_view, ...@@ -236,7 +236,7 @@ OverflowBubbleView::OverflowBubbleView(ShelfView* shelf_view,
DCHECK(shelf_view_); DCHECK(shelf_view_);
DCHECK(GetShelf()); DCHECK(GetShelf());
const int shelf_size = ShelfConfig::Get()->shelf_size() / 2; const int shelf_size = ShelfConfig::Get()->shelf_size();
set_border_radius(views::LayoutProvider::Get()->GetCornerRadiusMetric( set_border_radius(views::LayoutProvider::Get()->GetCornerRadiusMetric(
views::EMPHASIS_MAXIMUM, {shelf_size, shelf_size})); views::EMPHASIS_MAXIMUM, {shelf_size, shelf_size}));
SetArrow(views::BubbleBorder::NONE); SetArrow(views::BubbleBorder::NONE);
......
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