Preserve horizontal scroll in kanban
This commit is contained in:
parent
718cdee907
commit
441b31969c
@ -604,6 +604,9 @@
|
|||||||
var scroll = {};
|
var scroll = {};
|
||||||
// Fix the tags
|
// Fix the tags
|
||||||
removeUnusedTags(boards);
|
removeUnusedTags(boards);
|
||||||
|
// Get horizontal scroll
|
||||||
|
var $el = $(self.element);
|
||||||
|
var scrollLeft = $el.scrollLeft();
|
||||||
// Remove all boards
|
// Remove all boards
|
||||||
for (var i in this.options.boards.list) {
|
for (var i in this.options.boards.list) {
|
||||||
var boardkey = this.options.boards.list[i];
|
var boardkey = this.options.boards.list[i];
|
||||||
@ -619,6 +622,7 @@
|
|||||||
if (!scroll[id]) { return; }
|
if (!scroll[id]) { return; }
|
||||||
$('.kanban-board[data-id="'+id+'"] .kanban-drag').scrollTop(scroll[id]);
|
$('.kanban-board[data-id="'+id+'"] .kanban-drag').scrollTop(scroll[id]);
|
||||||
});
|
});
|
||||||
|
$el.scrollLeft(scrollLeft);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.findBoard = function (id) {
|
this.findBoard = function (id) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user