From 2e234c9cdbf9853f1d888f7499d50bc1f2c1b41d Mon Sep 17 00:00:00 2001 From: Xiaolu Date: Wed, 11 Nov 2020 18:43:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=20ipad=20=E5=B1=8F?= =?UTF-8?q?=E5=B9=95=E6=97=8B=E8=BD=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FWSideMenu/FWSideMenuContainerViewController.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FWSideMenu/FWSideMenuContainerViewController.swift b/FWSideMenu/FWSideMenuContainerViewController.swift index f9f0ce6..9b616f9 100644 --- a/FWSideMenu/FWSideMenuContainerViewController.swift +++ b/FWSideMenu/FWSideMenuContainerViewController.swift @@ -872,4 +872,9 @@ extension FWSideMenuContainerViewController { NotificationCenter.default.post(name: NSNotification.Name(rawValue: FWSideMenuStateNotificationEvent), object: self, userInfo: userInfo) } + + open override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { + super.viewWillTransition(to: size, with: coordinator) + centerMaskView.frame = CGRect(x: 0, y: 0, width: size.width, height: size.height) + } }