Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Unified Diff: ui/views/bubble/bubble_frame_view.cc

Issue 2821463004: Revert of Fix layout of BubbleFrameView when there's only a close button in the (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/views/bubble/bubble_frame_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_frame_view.cc
diff --git a/ui/views/bubble/bubble_frame_view.cc b/ui/views/bubble/bubble_frame_view.cc
index 1a3ae270416cac0148ae01932b13e8265a0d116b..bf3df7ee47ab05d9f2fc423c4719da48145abf33 100644
--- a/ui/views/bubble/bubble_frame_view.cc
+++ b/ui/views/bubble/bubble_frame_view.cc
@@ -257,8 +257,7 @@
const int title_height = std::max(icon_height, label_height) + title_padding;
const int close_height =
GetWidget()->widget_delegate()->ShouldShowCloseButton()
- ? close_->height() + LayoutProvider::Get()->GetDistanceMetric(
- DISTANCE_CLOSE_BUTTON_MARGIN)
+ ? close_->height()
: 0;
insets += gfx::Insets(std::max(title_height, close_height), 0, 0, 0);
return insets;
« no previous file with comments | « no previous file | ui/views/bubble/bubble_frame_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698