Skip to content

Commit 0d5d072

Browse files
committed
Attempt to fix an issue with split view drawing artifacts on 10.14
1 parent a2e6c11 commit 0d5d072

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: Source/SPSplitView.m

+7
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,13 @@ - (id)initWithParent:(SPSplitView *)aSplitView
12081208
- (void)_animationStep:(NSTimer *)aTimer
12091209
{
12101210
[parentSplitView adjustSubviews];
1211+
1212+
// this is required on 10.14 in order to have the dividers move properly, because that OS version forces a layer-backed
1213+
// view and at the same time calls -layout much less often than previous OS X versions, resulting in outdated dividers.
1214+
// That is not an issue on older OS X versions where -drawRect: was used.
1215+
if(isOSAtLeast10_7) {
1216+
[parentSplitView setNeedsLayout:YES]; // 10.7+
1217+
}
12111218
}
12121219

12131220
@end

0 commit comments

Comments
 (0)