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 {
209
209
210
210
viewDidLoad ( ) : void {
211
211
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
+ }
213
220
// Unify translucent and opaque bars layout
214
221
this . edgesForExtendedLayout = UIRectEdge . All ;
215
222
this . extendedLayoutIncludesOpaqueBars = true ;
@@ -276,9 +283,10 @@ class UILayoutViewController extends UIViewController {
276
283
277
284
IOSHelper . updateAutoAdjustScrollInsets ( this , owner ) ;
278
285
279
- if ( ! owner . parent ) {
280
- owner . callLoaded ( ) ;
281
- }
286
+ // if (!owner.parent) {
287
+ // owner.callLoaded();
288
+ // console.log('callLoaded done');
289
+ // }
282
290
}
283
291
284
292
viewDidDisappear ( animated : boolean ) : void {
You can’t perform that action at this time.
0 commit comments