Add View.addChildView API

This commit is contained in:
Cheng Zhao 2018-05-23 13:30:57 +09:00
parent 322bde526c
commit 2c8dc9e0bd
5 changed files with 36 additions and 3 deletions

View file

@ -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_);
}