Browse Source

【转档】窗口调整UI

tangchao 1 year ago
parent
commit
f4219fd9f0

+ 4 - 2
PDF Office/PDF Master/Class/PDFTools/Convert/Controller/KMConvertBaseWindowController.swift

@@ -118,13 +118,15 @@ class KMConvertBaseWindowController: KMBaseWindowController {
         super.initSubViews()
         
         let view = self.initSettingView()
-        view?.frame = self.rightScrollView.bounds
-        view?.autoresizingMask = [.width, .height]
+//        view?.frame = self.rightScrollView.bounds
+//        view?.autoresizingMask = [.width, .height]
         self.settingView = view
         self.rightScrollView.documentView = view
         self.rightScrollView.verticalScrollElasticity = .none
         self.rightScrollView.horizontalScrollElasticity = .none
         
+        view?.km_add_inset_constraint()
+        
         view?.currentLanguage = self.getCurrentLanguage()
         view?.lanugageDidSelected = { [unowned self] value, _ in
             guard let index = value as? Int else {