mirror of https://github.com/xwiki-labs/cryptpad
Preserve horizontal scroll in kanban
This commit is contained in:
parent
718cdee907
commit
441b31969c
www/kanban
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue