|
@@ -111,9 +111,7 @@ class KMToolbarController: NSViewController {
|
|
|
mainToolBarView?.view.wantsLayer = true
|
|
|
mainToolBarView?.view.layer?.backgroundColor = NSColor.km_init(hex: "#F7F8FA").cgColor
|
|
|
mainToolBarBox.contentView = mainToolBarView?.view
|
|
|
- mainToolBarView?.view.frame = mainToolBarBox.frame
|
|
|
mainToolBarView?.delegate = self
|
|
|
- mainToolBarView?.view.autoresizingMask = [.width, .height]
|
|
|
mainToolBarView?.pdfView = self.listView!
|
|
|
|
|
|
childToolBarView = KMToolbarViewController.init()
|
|
@@ -159,15 +157,15 @@ class KMToolbarController: NSViewController {
|
|
|
if _toolbarType == .None {
|
|
|
bottomOffset.constant = 0
|
|
|
childToolBarBox.isHidden = true
|
|
|
- self.delegate?.toolbarController?(self, heightOffsetChange: 40)
|
|
|
+ self.delegate?.toolbarController?(self, heightOffsetChange: 40+8)
|
|
|
} else if _toolbarType == .Page || _toolbarType == .LeftPanel {
|
|
|
bottomOffset.constant = 0
|
|
|
childToolBarBox.isHidden = true
|
|
|
- self.delegate?.toolbarController?(self, heightOffsetChange: 40)
|
|
|
+ self.delegate?.toolbarController?(self, heightOffsetChange: 40+8)
|
|
|
} else {
|
|
|
bottomOffset.constant = 41
|
|
|
childToolBarBox.isHidden = false
|
|
|
- self.delegate?.toolbarController?(self, heightOffsetChange: 81)
|
|
|
+ self.delegate?.toolbarController?(self, heightOffsetChange: 81+8)
|
|
|
}
|
|
|
childToolBarView?.toolbarType = _toolbarType
|
|
|
childToolBarView?.reloadateToolbar()
|