Skip to content

Commit

Permalink
Bugfix [iOS]: Fix Height of sidemenu when device orientation changes …
Browse files Browse the repository at this point in the history
…in iOS (#4907)

* fixes noBorder issue with largeTitle

* fixes issue that change navigationbar title color to default

* - change drawerControllers subviews height to MMDrawerController`s height on orientation change
  • Loading branch information
mohammadalijf authored and yogevbd committed Mar 31, 2019
1 parent f9aabf2 commit 68c62f3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/ios/RNNSideMenu/MMDrawerController/MMDrawerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,16 @@ -(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOr
[childViewController didRotateFromInterfaceOrientation:fromInterfaceOrientation];
}
}
if (self.rightDrawerViewController != nil) {
for (UIView * subview in self.rightDrawerViewController.view.subviews) {
subview.frame = self.view.bounds;
}
}
if (self.leftDrawerViewController != nil) {
for (UIView * subview in self.leftDrawerViewController.view.subviews) {
subview.frame = self.view.bounds;
}
}
}

-(bool)hasPan
Expand Down

0 comments on commit 68c62f3

Please sign in to comment.