ソースを参照

【新手引导】显示不全、跑版严重(偶现)

liujiajie 6 ヶ月 前
コミット
87b8c57a5f

+ 8 - 0
PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController.swift

@@ -334,6 +334,14 @@ import Cocoa
             self.exitFullButton.isHidden = true
             self.listView.backgroundColor = KMPreferenceManager.shared.displayBackgroundNormalColor
         }
+        if let guideWC = self.guideInfoWindowController{
+            var rect = self.view.window!.frame
+            rect.size.height -= 20
+            guideWC.window?.setFrame(rect, display: false)
+            guideWC.window?.minSize = rect.size
+            guideWC.window?.maxSize = rect.size
+            guideWC.show()
+        }
     }
     
     override func viewDidLoad() {