Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1029)

Unified Diff: views/controls/textfield/textfield.cc

Issue 131064: Fix problem where textfields are not drawn when added to a hierarchy (Closed)
Patch Set: Fixed comment based on feedback Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698