From 441b31969c5f419fcac62685bbd3a9f95fa362f5 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 11 Mar 2020 16:30:33 +0100 Subject: [PATCH] Preserve horizontal scroll in kanban --- www/kanban/jkanban.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/kanban/jkanban.js b/www/kanban/jkanban.js index 27abb1de6..5a4e4de43 100644 --- a/www/kanban/jkanban.js +++ b/www/kanban/jkanban.js @@ -604,6 +604,9 @@ var scroll = {}; // Fix the tags removeUnusedTags(boards); + // Get horizontal scroll + var $el = $(self.element); + var scrollLeft = $el.scrollLeft(); // Remove all boards for (var i in this.options.boards.list) { var boardkey = this.options.boards.list[i]; @@ -619,6 +622,7 @@ if (!scroll[id]) { return; } $('.kanban-board[data-id="'+id+'"] .kanban-drag').scrollTop(scroll[id]); }); + $el.scrollLeft(scrollLeft); } this.findBoard = function (id) {