瀏覽代碼

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 年之前
父節點
當前提交
68c62f33b5
共有 1 個檔案被更改,包括 10 行新增0 行删除
  1. 10
    0
      lib/ios/RNNSideMenu/MMDrawerController/MMDrawerController.m

+ 10
- 0
lib/ios/RNNSideMenu/MMDrawerController/MMDrawerController.m 查看文件

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