From b26d9bd6c52fb3dcffab7fe02cd67f78f212a6a5 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Fri, 23 Jul 2021 09:01:23 -0400 Subject: [PATCH] Update ParentPanelController.swift --- Clocker/Panel/ParentPanelController.swift | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Clocker/Panel/ParentPanelController.swift b/Clocker/Panel/ParentPanelController.swift index c7bbc89c..1c6dc9a5 100644 --- a/Clocker/Panel/ParentPanelController.swift +++ b/Clocker/Panel/ParentPanelController.swift @@ -490,6 +490,21 @@ class ParentPanelController: NSWindowController { scrollViewHeight.constant = (screenHeight() - 100) } } + + if DataStore.shared().shouldDisplay(.futureSlider) { + let isModernSliderDisplayed = DataStore.shared().retrieve(key: CLDisplayFutureSliderKey) as? NSNumber ?? 0 + if isModernSliderDisplayed == 0 { + if scrollViewHeight.constant >= (screenHeight() - 200) { + scrollViewHeight.constant = (screenHeight() - 300) + } + } else { + if scrollViewHeight.constant >= (screenHeight() - 200) { + scrollViewHeight.constant = (screenHeight() - 200) + } + } + + + } } func updateDefaultPreferences() {