summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-18 23:46:51 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-18 23:46:51 +0000
commita8c1a314d8277b7ce4f701ce73957146e61a215f (patch)
tree96250ff3df23b6407c4fb2ee8235715afa3b3b59 /views
parent4a27b67da7fde26a2a4ac1c193fda2efc14d857e (diff)
downloadchromium_src-a8c1a314d8277b7ce4f701ce73957146e61a215f.zip
chromium_src-a8c1a314d8277b7ce4f701ce73957146e61a215f.tar.gz
chromium_src-a8c1a314d8277b7ce4f701ce73957146e61a215f.tar.bz2
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
Diffstat (limited to 'views')
-rw-r--r--views/controls/textfield/textfield.cc4
1 files changed, 4 insertions, 0 deletions
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();
}
}