Index: chrome/browser/chromeos/login/textfield_with_margin.cc |
diff --git a/chrome/browser/chromeos/login/textfield_with_margin.cc b/chrome/browser/chromeos/login/textfield_with_margin.cc |
index 7f8edd2dbb3f617d6be24ebe2b3aade68c7d3f64..8ad4cee430ef64c097cf88b9520194f3e0f44749 100644 |
--- a/chrome/browser/chromeos/login/textfield_with_margin.cc |
+++ b/chrome/browser/chromeos/login/textfield_with_margin.cc |
@@ -9,13 +9,20 @@ namespace { |
// Holds ratio of the margin to the preferred text height. |
const double kTextMarginRate = 0.33; |
+// Size of each vertical margin (top, bottom). |
+const int kVerticalMargin = 3; |
+ |
} // namespace |
namespace chromeos { |
+TextfieldWithMargin::TextfieldWithMargin() { |
+} |
+ |
void TextfieldWithMargin::Layout() { |
int margin = GetPreferredSize().height() * kTextMarginRate; |
SetHorizontalMargins(margin, margin); |
+ SetVerticalMargins(kVerticalMargin, kVerticalMargin); |
views::Textfield::Layout(); |
} |