diff options
-rw-r--r-- | views/controls/textfield/textfield.cc | 4 |
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(); } } |