Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kcharwood committed Mar 11, 2015
1 parent 407789d commit 607b371
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MMDrawerController/UIViewController+MMDrawerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ -(CGRect)mm_visibleDrawerFrame{
[self.navigationController isEqual:self.mm_drawerController.leftDrawerViewController]){
CGRect rect = self.mm_drawerController.view.bounds;
rect.size.width = self.mm_drawerController.maximumLeftDrawerWidth;
if (self.mm_drawerController.showsStatusBarBackgroundView) {
rect.size.height -= 20.0f;
}
return rect;

}
Expand All @@ -48,6 +51,9 @@ -(CGRect)mm_visibleDrawerFrame{
CGRect rect = self.mm_drawerController.view.bounds;
rect.size.width = self.mm_drawerController.maximumRightDrawerWidth;
rect.origin.x = CGRectGetWidth(self.mm_drawerController.view.bounds)-rect.size.width;
if (self.mm_drawerController.showsStatusBarBackgroundView) {
rect.size.height -= 20.0f;
}
return rect;
}
else {
Expand Down

0 comments on commit 607b371

Please sign in to comment.