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

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

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.h
diff --git a/ui/views/layout/layout_provider.h b/ui/views/layout/layout_provider.h
index 41da0c8b96fe2edc0259dacc4d155a424edeacf9..4c82945f2c83ab4901c9a14e40c6f164352815be 100644
--- a/ui/views/layout/layout_provider.h
+++ b/ui/views/layout/layout_provider.h
@@ -49,8 +49,11 @@ enum DistanceMetric {
// two types have not been interchanged.
VIEWS_DISTANCE_START = VIEWS_INSETS_MAX,
+ // If a bubble has buttons, this is the margin between them and the rest of
+ // the content.
+ DISTANCE_BUBBLE_BUTTON_TOP_MARGIN = VIEWS_DISTANCE_START,
Peter Kasting 2017/06/10 01:51:11 I'm not sure whether adding this is right. We see
Bret 2017/06/11 00:14:09 No, lots of bubbles have buttons (e.g. the bookmar
Peter Kasting 2017/06/12 22:47:14 OK, that all makes sense. But in that case it see
Bret 2017/06/13 21:00:41 I'd really like to get everything into a working s
// Margin on the left and right of the contents of a bubble.
- DISTANCE_BUBBLE_CONTENTS_HORIZONTAL_MARGIN = VIEWS_DISTANCE_START,
+ DISTANCE_BUBBLE_CONTENTS_HORIZONTAL_MARGIN,
// Margin on the top and bottom of the contents of a bubble.
DISTANCE_BUBBLE_CONTENTS_VERTICAL_MARGIN,
// The default padding to add on each side of a button's label.

Powered by Google App Engine
This is Rietveld 408576698