         
         menuVc.view.frame = UIScreen.main.bounds
         
-        outView = _vc.view.snapshotView(afterScreenUpdates: true)
+        outViewController = _vc
+        outView = outViewController?.view.snapshotView(afterScreenUpdates: true)
+        outView?.autoresizingMask = [.flexibleLeftMargin, .flexibleTopMargin, .flexibleBottomMargin]
         outView?.frame = UIScreen.main.bounds
         self.updateOutView()
         

    public var onWideOpen: (() -> Void)? = nil
    
    private var preStatusBarStyle = UIApplication.shared.statusBarStyle
    private var outView:UIView? = nil
    
    public override init() {

    public func rotated() {
        if opened {
            print("ROTATED!!")
            print("bounds: \(UIScreen.main.bounds)")
            let snap = outViewController?.view.snapshotView(afterScreenUpdates: true)!
            snap?.frame = (outView?.bounds)!
            snap?.autoresizingMask = [.flexibleWidth, .flexibleHeight]
            outView?.addSubview(snap!)
        }
    }
    
