| Index: views/controls/textfield/textfield.cc
|
| diff --git a/views/controls/textfield/textfield.cc b/views/controls/textfield/textfield.cc
|
| index 38f2a8017a71ea026467a1adaa39ae47d9d3ca64..5e953edfa47bec9eeda3805f4d18b0067825c15b 100644
|
| --- a/views/controls/textfield/textfield.cc
|
| +++ b/views/controls/textfield/textfield.cc
|
| @@ -252,6 +252,10 @@ void Textfield::ViewHierarchyChanged(bool is_add, View* parent, View* child) {
|
| native_wrapper_->UpdateFont();
|
| native_wrapper_->UpdateEnabled();
|
| native_wrapper_->UpdateBorder();
|
| +
|
| + // We need to call Layout here because any previous calls to Layout
|
| + // will have short-circuited and we don't call AddChildView.
|
| + Layout();
|
| }
|
| }
|
|
|
|
|