From 21199eb9e085b0d1217b4793993141496fda11f9 Mon Sep 17 00:00:00 2001 From: jos Date: Thu, 2 Aug 2018 10:27:02 +0200 Subject: [PATCH] Fixed #558: scrolling to search results broken --- HISTORY.md | 5 +++++ src/js/treemode.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 4944983..12f94ca 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -3,6 +3,11 @@ https://github.com/josdejong/jsoneditor +## 2018-08-02, version 5.19.2 + +- Fixed #558: scrolling to search results broken (regression since v5.19.1). + + ## 2018-07-28, version 5.19.1 - Fixed #557: inner contents of the scrollable area being displayed outside of diff --git a/src/js/treemode.js b/src/js/treemode.js index ba832d1..e6d9f64 100644 --- a/src/js/treemode.js +++ b/src/js/treemode.js @@ -618,7 +618,7 @@ treemode.getDomSelection = function () { * when not. */ treemode.scrollTo = function (top, callback) { - var content = this.content; + var content = this.scrollableContent; if (content) { var editor = this; // cancel any running animation