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

Unified Diff: ui/views/controls/combobox/combobox.cc

Issue 2342783004: views: use MD padding for combobox (Closed)
Patch Set: Created 4 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/combobox/combobox.cc
diff --git a/ui/views/controls/combobox/combobox.cc b/ui/views/controls/combobox/combobox.cc
index 8d63f440617cfddf265c1aad140f368ecb8ca542..90975044eb025ca903be83cbc1f7fa3d81809bbf 100644
--- a/ui/views/controls/combobox/combobox.cc
+++ b/ui/views/controls/combobox/combobox.cc
@@ -991,8 +991,11 @@ PrefixSelector* Combobox::GetPrefixSelector() {
}
int Combobox::GetArrowContainerWidth() const {
+ const int kMdPaddingWidth = 8;
+ int arrow_pad = UseMd() ? kMdPaddingWidth
+ : PlatformStyle::kComboboxNormalArrowPadding;
int padding = style_ == STYLE_NORMAL
- ? PlatformStyle::kComboboxNormalArrowPadding * 2
+ ? arrow_pad * 2
: kActionLeftPadding + kActionRightPadding;
return ArrowSize().width() + padding;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698