Index: views/controls/native_control.cc |
diff --git a/views/controls/native_control.cc b/views/controls/native_control.cc |
index f7143826cc811cf16344ec38ce9eb66e63161d90..0792b29fb139b8b5b1518ea7beca75be6a6fc42c 100644 |
--- a/views/controls/native_control.cc |
+++ b/views/controls/native_control.cc |
@@ -201,7 +201,7 @@ void NativeControl::ValidateNativeControl() { |
void NativeControl::ViewHierarchyChanged(bool is_add, View *parent, |
View *child) { |
- if (is_add && child == this && GetWidget()) { |
+ if (is_add && parent != this && !container_ && GetWidget()) { |
ValidateNativeControl(); |
Layout(); |
} |