diff options
author | bobzel <zzzman@gmail.com> | 2021-03-25 21:13:11 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-03-25 21:13:11 -0400 |
commit | e2b0df8e1d91578af7b97fb36bd029104a51dd01 (patch) | |
tree | c322e59169ab189a6dd7013de3b7f0408b65b86a /src/client/goldenLayout.js | |
parent | ad9a20da484f08af5c909e673667aecc6e843b5a (diff) |
from last
Diffstat (limited to 'src/client/goldenLayout.js')
-rw-r--r-- | src/client/goldenLayout.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/goldenLayout.js b/src/client/goldenLayout.js index 0b26e80af..9cfea7f3f 100644 --- a/src/client/goldenLayout.js +++ b/src/client/goldenLayout.js @@ -1,4 +1,5 @@ (function ($) { + //if a tab is removed from the DOM and reinserted somewhere else all nested scrollTops seems to get reset to 0. (golden layout does this when a row structure needs to be converted to col or vice-versa) const saveScrollTops = (element) => { const children = Array.from(element.children()); while (children.length) { @@ -492,6 +493,8 @@ this._dragSources = []; this._updatingColumnsResponsive = false; this._firstLoad = true; + this.saveScrollTops = saveScrollTops; + this.restoreScrollTops = restoreScrollTops; this.width = null; this.height = null; |