|
@@ -140,10 +140,10 @@ extension KMHomeViewController {
|
|
|
rightFullBox.contentView = nil
|
|
|
|
|
|
let isQuickToolsType:Bool = UserDefaults.standard.bool(forKey: "kHomeQucikToolsTypeKey")
|
|
|
- if isQuickToolsType { // ScrollerViewWidget
|
|
|
- rightTopBoxHeightConstraint.constant = 230
|
|
|
- } else { // ScrollerViewWidget
|
|
|
- rightTopBoxHeightConstraint.constant = 326
|
|
|
+ if isQuickToolsType {
|
|
|
+ rightTopBoxHeightConstraint.constant = 230 + ScrollerViewWidget
|
|
|
+ } else {
|
|
|
+ rightTopBoxHeightConstraint.constant = 326 + ScrollerViewWidget
|
|
|
}
|
|
|
|
|
|
homeButtonVC.state = .Sel
|
|
@@ -226,10 +226,10 @@ extension KMHomeViewController: NSSplitViewDelegate {
|
|
|
|
|
|
extension KMHomeViewController: KMHomeFastToolViewControllerDelegate {
|
|
|
func fastToolViewController(_ viewController: KMHomeFastToolViewController, foldChangeState: Bool) {
|
|
|
- if foldChangeState { // ScrollerViewWidget
|
|
|
- rightTopBoxHeightConstraint.constant = 230.0
|
|
|
- } else { // ScrollerViewWidget
|
|
|
- rightTopBoxHeightConstraint.constant = 326.0
|
|
|
+ if foldChangeState {
|
|
|
+ rightTopBoxHeightConstraint.constant = 230.0 + ScrollerViewWidget
|
|
|
+ } else {
|
|
|
+ rightTopBoxHeightConstraint.constant = 326.0 + ScrollerViewWidget
|
|
|
}
|
|
|
}
|
|
|
|