Commit 7e41d4be authored by ellyjones's avatar ellyjones Committed by Commit bot

views: use MD padding for combobox

This change was originally part of https://codereview.chromium.org/2317033002,
but fell on the floor. Oops!

BUG=644709

Review-Url: https://codereview.chromium.org/2342783004
Cr-Commit-Position: refs/heads/master@{#419243}
parent 30406bdd
...@@ -991,8 +991,11 @@ PrefixSelector* Combobox::GetPrefixSelector() { ...@@ -991,8 +991,11 @@ PrefixSelector* Combobox::GetPrefixSelector() {
} }
int Combobox::GetArrowContainerWidth() const { int Combobox::GetArrowContainerWidth() const {
const int kMdPaddingWidth = 8;
int arrow_pad = UseMd() ? kMdPaddingWidth
: PlatformStyle::kComboboxNormalArrowPadding;
int padding = style_ == STYLE_NORMAL int padding = style_ == STYLE_NORMAL
? PlatformStyle::kComboboxNormalArrowPadding * 2 ? arrow_pad * 2
: kActionLeftPadding + kActionRightPadding; : kActionLeftPadding + kActionRightPadding;
return ArrowSize().width() + padding; return ArrowSize().width() + padding;
} }
......
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