Add View.addChildView API
This commit is contained in:
parent
322bde526c
commit
2c8dc9e0bd
5 changed files with 36 additions and 3 deletions
|
@ -14,7 +14,7 @@ DelayedNativeViewHost::~DelayedNativeViewHost() {}
|
|||
void DelayedNativeViewHost::ViewHierarchyChanged(
|
||||
const ViewHierarchyChangedDetails& details) {
|
||||
NativeViewHost::ViewHierarchyChanged(details);
|
||||
if (details.is_add)
|
||||
if (details.is_add && GetWidget())
|
||||
Attach(native_view_);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue