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

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

Issue 2765883004: Implement Harmony typography spec. (Closed)
Patch Set: respond to comments Created 3 years, 8 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 | « ui/views/controls/button/label_button.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/label.cc
diff --git a/ui/views/controls/label.cc b/ui/views/controls/label.cc
index f2d891d4e17ea5c329b77ce0e71d087107ccd48e..762227f7b716461fc942bdcffd859ba2da2a135d 100644
--- a/ui/views/controls/label.cc
+++ b/ui/views/controls/label.cc
@@ -49,6 +49,7 @@ Label::Label(const base::string16& text)
Label::Label(const base::string16& text, int text_context, int text_style)
: context_menu_contents_(this) {
Init(text, style::GetFont(text_context, text_style));
+ SetLineHeight(style::GetLineHeight(text_context, text_style));
}
Label::Label(const base::string16& text, const CustomFont& font)
« no previous file with comments | « ui/views/controls/button/label_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698