Chromium Code Reviews| 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 8ad4cee430ef64c097cf88b9520194f3e0f44749..87287115983cf902e2a567623ac6b4f658546927 100644 |
| --- a/chrome/browser/chromeos/login/textfield_with_margin.cc |
| +++ b/chrome/browser/chromeos/login/textfield_with_margin.cc |
| @@ -4,6 +4,8 @@ |
| #include "chrome/browser/chromeos/login/textfield_with_margin.h" |
| +#include "chrome/browser/chromeos/login/helper.h" |
| + |
| namespace { |
| // Holds ratio of the margin to the preferred text height. |
| @@ -26,4 +28,13 @@ void TextfieldWithMargin::Layout() { |
| views::Textfield::Layout(); |
| } |
| +void TextfieldWithMargin::ViewHierarchyChanged(bool is_add, |
| + views::View *parent, |
| + views::View *child) { |
| + Textfield::ViewHierarchyChanged(is_add, parent, child); |
| + if (is_add && child == this) { |
| + CorrectTextfieldFontSize(this); |
|
altimofeev
2010/12/01 18:21:36
Why correction is done here? AFAIK textfield updat
whywhat
2010/12/01 18:27:47
I guess it worked but the idea is to move it to on
Nikita (slow)
2010/12/01 18:29:16
Ok, I've found out that I was missing second const
|
| + } |
| +} |
| + |
| } // namespace chromeos |