Skip to content

Commit

Permalink
Fixed iPad-Rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
myell0w committed Jan 2, 2011
1 parent 8982f73 commit 202a18a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MTStatusBarOverlay.m
Expand Up @@ -760,7 +760,7 @@ - (void)didRotate:(NSNotification *)notification {
self.smallFrame = CGRectMake(self.frame.size.width - kWidthSmall, 0.0f, kWidthSmall, self.frame.size.height);
}else if (orientation == UIDeviceOrientationLandscapeLeft) {
self.transform = CGAffineTransformMakeRotation(M_PI * (90) / 180.0);
self.frame = CGRectMake(kScreenWidth - kStatusBarHeight,0, kStatusBarHeight, 480);
self.frame = CGRectMake(kScreenWidth - kStatusBarHeight,0, kStatusBarHeight, kScreenHeight);
self.smallFrame = CGRectMake(kScreenHeight-kWidthSmall,0,kWidthSmall,kStatusBarHeight);
} else if (orientation == UIDeviceOrientationLandscapeRight) {
self.transform = CGAffineTransformMakeRotation(M_PI * (-90) / 180.0);
Expand Down

0 comments on commit 202a18a

Please sign in to comment.