From c504b10e4a0a4c08e05bd1a2aeb641d2fb58e8b2 Mon Sep 17 00:00:00 2001 From: Dung Le Date: Tue, 24 Sep 2019 12:56:44 +0700 Subject: [PATCH] Fix scroll bars not appearing on certain settings Setting the bounds origins directly caused the scroll bar to not show up due to scroller management being hidden in `scroll(to: )`. This commit fixes that by canceling the animation after the call instead. --- Sources/XiEditor/EditViewController.swift | 3 +++ Sources/XiEditor/XiClipView.swift | 7 +------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Sources/XiEditor/EditViewController.swift b/Sources/XiEditor/EditViewController.swift index 21874bd7..01c96145 100644 --- a/Sources/XiEditor/EditViewController.swift +++ b/Sources/XiEditor/EditViewController.swift @@ -325,6 +325,9 @@ class EditViewController: NSViewController, EditViewDataSource, FindDelegate, Sc if first..