Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-17235]: iOS Windows in tabGroup flicker on first open #10014

Merged
merged 9 commits into from
May 19, 2018
5 changes: 5 additions & 0 deletions iphone/Classes/TiUITabProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ - (void)openWindow:(NSArray *)args
[window setIsManaged:YES];
[window setTab:self];
[window setParentOrientationController:self];

TiUIView *view = [window view];
TiViewController *controller = (TiViewController *)[window hostingController];
[view setFrame:controller.view.bounds];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about [TiUtils setView:controller.view positionRect:controller.view.bounds]? It also respects the center, although it's not as important here.


//Send to open. Will come back after _handleOpen returns true.
if (![window opening]) {
args = ([args count] > 1) ? [args objectAtIndex:1] : nil;
Expand Down