aboutsummaryrefslogtreecommitdiff
path: root/src/client/goldenLayout.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/goldenLayout.js')
-rw-r--r--src/client/goldenLayout.js3
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;