Skip to content

Commit

Permalink
Do not mix frame and transform adjustments
Browse files Browse the repository at this point in the history
Fixes issue defagos#9 with HLSStackController (incorrect result when pushing, rotating, rotating, popping or pushing, rotating, popping, pushing, rotating, popping, for example)
  • Loading branch information
defagos committed Apr 18, 2012
1 parent 6f018ec commit 17571fb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CoconutKit/Sources/ViewControllers/HLSContainerContent.m
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,9 @@ + (HLSAnimation *)rotationAnimationForContainerContentStack:(NSArray *)container
}
}

// Return the animation to be played. During rotation, views must be resized to account for frame size changes
// (because the container view dimensions in general change when it is rotated. If it is the screen area, e.g.,
// then the 768px x 1004px portrait screen becomes 1024px x 748px in landscape mode, not simply 1004px x 768px)
// Return the animation to be played
HLSAnimation *animation = [HLSAnimation animationWithAnimationStep:animationStep];
animation.lockingUI = YES;
animation.resizeViews = YES;
return animation;
}

Expand Down

0 comments on commit 17571fb

Please sign in to comment.