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

Unified Diff: ui/views/layout/layout_provider.cc

Issue 2932523003: Fix Harmony popover buttons being flush with their content. (Closed)
Patch Set: too much padding for bubbles Created 3 years, 6 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
Index: ui/views/layout/layout_provider.cc
diff --git a/ui/views/layout/layout_provider.cc b/ui/views/layout/layout_provider.cc
index 11412ca33f5a4560f8b9807add62831ba8d7f3ba..b8da44d792d395b0498386fa7a077dc0cedba684 100644
--- a/ui/views/layout/layout_provider.cc
+++ b/ui/views/layout/layout_provider.cc
@@ -86,6 +86,7 @@ int LayoutProvider::GetDistanceMetric(int metric) const {
return kRelatedButtonHSpacing;
case DistanceMetric::DISTANCE_RELATED_CONTROL_HORIZONTAL:
return kRelatedControlHorizontalSpacing;
+ case DistanceMetric::DISTANCE_BUBBLE_BUTTON_TOP_MARGIN:
case DistanceMetric::DISTANCE_RELATED_CONTROL_VERTICAL:
return kRelatedControlVerticalSpacing;
case DISTANCE_DIALOG_BUTTON_BOTTOM_MARGIN:

Powered by Google App Engine
This is Rietveld 408576698