Explorar el Código

Bugfix [iOS]: Fix Height of sidemenu when device orientation changes 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
Mohammad Ali Jafarian hace 5 años
padre
commit
68c62f33b5
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10
    0
      lib/ios/RNNSideMenu/MMDrawerController/MMDrawerController.m

+ 10
- 0
lib/ios/RNNSideMenu/MMDrawerController/MMDrawerController.m Ver fichero

@@ -874,6 +874,16 @@ static NSString *MMDrawerOpenSideKey = @"MMDrawerOpenSide";
874 874
             [childViewController didRotateFromInterfaceOrientation:fromInterfaceOrientation];
875 875
         }
876 876
     }
877
+	if (self.rightDrawerViewController != nil) {
878
+		for (UIView * subview in self.rightDrawerViewController.view.subviews) {
879
+			subview.frame = self.view.bounds;
880
+		}
881
+	}
882
+	if (self.leftDrawerViewController != nil) {
883
+		for (UIView * subview in self.leftDrawerViewController.view.subviews) {
884
+			subview.frame = self.view.bounds;
885
+		}
886
+	}
877 887
 }
878 888
 
879 889
 -(bool)hasPan