Skip to content

Commit dca58f5

Browse files
committed
Fixed rotation layout bug
1 parent 96f3cfb commit dca58f5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

LTHPasscodeViewController/LTHPasscodeViewController.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,12 @@ - (void)viewWillAppear:(BOOL)animated {
516516
}
517517

518518

519+
- (void)viewWillLayoutSubviews {
520+
[super viewWillLayoutSubviews];
521+
_animatingView.frame = self.view.bounds;
522+
}
523+
524+
519525
- (void)viewWillDisappear:(BOOL)animated {
520526
// If _isCurrentlyOnScreen is true at this point,
521527
// it means the back button was tapped, so we need to reset.
@@ -1805,7 +1811,7 @@ - (void)statusBarFrameOrOrientationChanged:(NSNotification *)notification {
18051811
*/
18061812
[self rotateAccordingToStatusBarOrientationAndSupportedOrientations];
18071813
if (LTHiOS8) {
1808-
_animatingView.frame = self.view.frame;
1814+
_animatingView.frame = self.view.bounds;
18091815
}
18101816
else {
18111817
if (UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation)) {

0 commit comments

Comments
 (0)