Skip to content

Commit

Permalink
Merge pull request #4677 from vishalduggal/timob-15078
Browse files Browse the repository at this point in the history
[TIMOB-15078] NavigationWindow does not animate close when opened modally
  • Loading branch information
srahim committed Sep 12, 2013
2 parents 119de36 + 120286d commit 0aa3446
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions iphone/Classes/TiRootViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ - (BOOL)shouldRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOr
return TI_ORIENTATION_ALLOWED([self getFlags:check],toInterfaceOrientation) ? YES : NO;
}

#if defined(DEBUG) || defined(DEVELOPER)
#ifdef DEVELOPER
- (void)viewWillLayoutSubviews
{
CGRect bounds = [[self view] bounds];
Expand All @@ -974,7 +974,7 @@ - (void)viewWillLayoutSubviews

- (void)viewDidLayoutSubviews
{
#if defined(DEBUG) || defined(DEVELOPER)
#ifdef DEVELOPER
CGRect bounds = [[self view] bounds];
NSLog(@"ROOT DID LAYOUT SUBVIEWS %.1f %.1f",bounds.size.width, bounds.size.height);
#endif
Expand Down
4 changes: 2 additions & 2 deletions iphone/Classes/TiUIiOSNavWindowProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,10 @@ -(void)windowWillOpen
}


-(void) windowWillClose
-(void) windowDidClose
{
[self cleanNavStack];
[super windowWillClose];
[super windowDidClose];
}

-(void)willChangeSize
Expand Down
4 changes: 2 additions & 2 deletions iphone/Classes/TiViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ -(TiViewProxy*) proxy
return _proxy;
}

#if defined(DEBUG) || defined(DEVELOPER)
#ifdef DEVELOPER
- (void)viewWillLayoutSubviews
{
CGRect bounds = [[self view] bounds];
Expand All @@ -50,7 +50,7 @@ - (void)viewWillLayoutSubviews

- (void)viewDidLayoutSubviews
{
#if defined(DEBUG) || defined(DEVELOPER)
#ifdef DEVELOPER
CGRect bounds = [[self view] bounds];
NSLog(@"TIVIEWCONTROLLER DID LAYOUT SUBVIEWS %.1f %.1f",bounds.size.width, bounds.size.height);
#endif
Expand Down
8 changes: 4 additions & 4 deletions iphone/Classes/TiWindowProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ -(BOOL)_handleOpen:(id)args
RELEASE_TO_NIL(openAnimation);
}

if ( (tab == nil) && (isModal == NO) && ([theController topPresentedController] != [theController topContainerController]) ){
DeveloperLog(@"[WARN] The top View controller is not a container controller. This window will open behind the presented controller.")
if ( (!self.isManaged) && (!isModal) && (openAnimation != nil) && ([theController topPresentedController] != [theController topContainerController]) ){
DeveloperLog(@"[WARN] The top View controller is not a container controller. This window will open behind the presented controller without animations.")
[self forgetProxy:openAnimation];
RELEASE_TO_NIL(openAnimation);
}
Expand All @@ -287,8 +287,8 @@ -(BOOL)_handleClose:(id)args
[self forgetProxy:closeAnimation];
RELEASE_TO_NIL(closeAnimation);
}
if ( (tab == nil) && (isModal == NO) && ([theController topPresentedController] != [theController topContainerController]) ){
DeveloperLog(@"[WARN] The top View controller is not a container controller. This window will open behind the presented controller.")
if ( (!self.isManaged) && (!isModal) && (closeAnimation != nil) && ([theController topPresentedController] != [theController topContainerController]) ){
DeveloperLog(@"[WARN] The top View controller is not a container controller. This window will close behind the presented controller without animations.")
[self forgetProxy:closeAnimation];
RELEASE_TO_NIL(closeAnimation);
}
Expand Down

0 comments on commit 0aa3446

Please sign in to comment.