File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,14 @@ class UILayoutViewController extends UIViewController {
209209
210210 viewDidLoad ( ) : void {
211211 super . viewDidLoad ( ) ;
212-
212+ const owner = this . owner . get ( ) ;
213+ if ( ! owner ) {
214+ return ;
215+ }
216+ if ( ! owner . parent ) {
217+ owner . callLoaded ( ) ;
218+ console . log ( 'callLoaded done' ) ;
219+ }
213220 // Unify translucent and opaque bars layout
214221 this . edgesForExtendedLayout = UIRectEdge . All ;
215222 this . extendedLayoutIncludesOpaqueBars = true ;
@@ -276,9 +283,10 @@ class UILayoutViewController extends UIViewController {
276283
277284 IOSHelper . updateAutoAdjustScrollInsets ( this , owner ) ;
278285
279- if ( ! owner . parent ) {
280- owner . callLoaded ( ) ;
281- }
286+ // if (!owner.parent) {
287+ // owner.callLoaded();
288+ // console.log('callLoaded done');
289+ // }
282290 }
283291
284292 viewDidDisappear ( animated : boolean ) : void {
You can’t perform that action at this time.
0 commit comments