From f5ca6c39f6017738770610636ac97d545a6a5bd2 Mon Sep 17 00:00:00 2001 From: Didier Korthoudt Date: Sat, 2 Jun 2018 22:08:59 +0200 Subject: [PATCH] Revert "Revert "Revert "CPScrollView-scrollerStyle-fix""" This reverts commit 653fdb999ee984c71b0d2da8b4a2e23602a3abcb. --- AppKit/CPScrollView.j | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AppKit/CPScrollView.j b/AppKit/CPScrollView.j index df022061c..c59178b2f 100644 --- a/AppKit/CPScrollView.j +++ b/AppKit/CPScrollView.j @@ -1290,6 +1290,9 @@ Notifies the delegate when the scroll view has finished scrolling. if (_isObserving) return; + //Make sure to have the last global style for the scroller + [self _didReceiveDefaultStyleChange:nil]; + [[CPNotificationCenter defaultCenter] addObserver:self selector:@selector(_didReceiveDefaultStyleChange:) name:CPScrollerStyleGlobalChangeNotification