Commit 6e148d73 authored by Marijn Kruisselbrink's avatar Marijn Kruisselbrink Committed by Commit Bot

[Native File System] Use correct width for usage bubble.

Bubbles are typically narrower than modal dialogs.

Bug: 987285
Change-Id: Ic195d73e8040e45dd8c92f44838b31b5b38abcef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1737440
Commit-Queue: Marijn Kruisselbrink <mek@chromium.org>
Commit-Queue: Victor Costan <pwnall@chromium.org>
Reviewed-by: default avatarVictor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#684163}
parent 98bdb40f
......@@ -402,7 +402,7 @@ void NativeFileSystemUsageBubbleView::CloseBubble() {
gfx::Size NativeFileSystemUsageBubbleView::CalculatePreferredSize() const {
const int width = ChromeLayoutProvider::Get()->GetDistanceMetric(
DISTANCE_MODAL_DIALOG_PREFERRED_WIDTH) -
DISTANCE_BUBBLE_PREFERRED_WIDTH) -
margins().width();
return gfx::Size(width, GetHeightForWidth(width));
}
......
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