Fixed #558: scrolling to search results broken

This commit is contained in:
jos 2018-08-02 10:27:02 +02:00
parent 53b42184a3
commit 21199eb9e0
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,11 @@
https://github.com/josdejong/jsoneditor 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 ## 2018-07-28, version 5.19.1
- Fixed #557: inner contents of the scrollable area being displayed outside of - Fixed #557: inner contents of the scrollable area being displayed outside of

View File

@ -618,7 +618,7 @@ treemode.getDomSelection = function () {
* when not. * when not.
*/ */
treemode.scrollTo = function (top, callback) { treemode.scrollTo = function (top, callback) {
var content = this.content; var content = this.scrollableContent;
if (content) { if (content) {
var editor = this; var editor = this;
// cancel any running animation // cancel any running animation