From a8c1a314d8277b7ce4f701ce73957146e61a215f Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Thu, 18 Jun 2009 23:46:51 +0000 Subject: Lands http://codereview.chromium.org/131064 for tedoc2000. BUG=none TEST=none Review URL: http://codereview.chromium.org/132041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18771 0039d316-1c4b-4281-b951-d872f2087c98 --- views/controls/textfield/textfield.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/views/controls/textfield/textfield.cc b/views/controls/textfield/textfield.cc index 38f2a80..5e953ed 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(); } } -- cgit v1.1