Przeglądaj źródła

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 5 lat temu
rodzic
commit
68c62f33b5

+ 10
- 0
lib/ios/RNNSideMenu/MMDrawerController/MMDrawerController.m Wyświetl plik

@@ -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