Chromium Code Reviews| Index: ui/views/controls/button/label_button.cc |
| diff --git a/ui/views/controls/button/label_button.cc b/ui/views/controls/button/label_button.cc |
| index 70a2f10e09b05d2748f2d52d9871398c35868586..f15aa17ea4863a2133beb3957795f0bd9780962c 100644 |
| --- a/ui/views/controls/button/label_button.cc |
| +++ b/ui/views/controls/button/label_button.cc |
| @@ -238,6 +238,7 @@ gfx::Size LabelButton::GetPreferredSize() const { |
| // Use a temporary label copy for sizing to avoid calculation side-effects. |
| Label label(GetText(), {label_->font_list()}); |
| + label.SetLineHeight(label_->line_height()); |
| label.SetShadows(label_->shadows()); |
| if (style_ == STYLE_BUTTON && PlatformStyle::kDefaultLabelButtonHasBoldFont) { |
|
tapted
2017/04/03 09:20:49
This ButtonHasBoldFont thing is going away eventua
|