Permalink
Browse files

Fixed background dimming rotation issues.

Closes #19
  • Loading branch information...
1 parent 1fd1cd9 commit 645a9dedbc0d19b9712c27af524fcca91eb421e9 @matej matej committed Nov 3, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 MBProgressHUD.m
View
4 MBProgressHUD.m
@@ -642,8 +642,12 @@ - (void)deviceOrientationDidChange:(NSNotification *)notification {
if (!self.superview) {
return;
}
+
if ([self.superview isKindOfClass:[UIWindow class]]) {
[self setTransformForCurrentOrientation:YES];
+ } else {
+ self.bounds = self.superview.bounds;
+ [self setNeedsDisplay];
}
}

0 comments on commit 645a9de

Please sign in to comment.