// // KMBackgroundOutsideView.swift // PDF Master // // Created by tangchao on 2022/12/25. // import Cocoa class KMBackgroundOutsideView: KMWatermarkAdjectiveOutsideView { override init(frame frameRect: NSRect) { super.init(frame: frameRect) self.pageAboveComboBox.isHidden = true } required init?(coder: NSCoder) { super.init(coder: coder) } override func layout() { super.layout() let width: CGFloat = NSWidth(self.bounds) let leftMargin: CGFloat = 16 self.pageTargetScale.frame = NSMakeRect(leftMargin, self.rotateButton.frame.maxY+10, width-2*leftMargin, 16) self.pageTargetScaleComboBox.frame = NSMakeRect(leftMargin, self.pageTargetScale.frame.maxY+10, 100, 22) } }