Removed individual column scrolling on board

This commit is contained in:
Frederic Guillot
2016-07-24 15:18:09 -04:00
parent 9d6715ddc0
commit 5d3ad534cc
9 changed files with 14 additions and 100 deletions

View File

@@ -12,6 +12,7 @@ Kanboard.BoardDragAndDrop.prototype.execute = function() {
Kanboard.BoardDragAndDrop.prototype.dragAndDrop = function() {
var self = this;
var dropzone = $(".board-task-list");
var params = {
forcePlaceholderSize: true,
tolerance: "pointer",
@@ -47,7 +48,12 @@ Kanboard.BoardDragAndDrop.prototype.dragAndDrop = function() {
params["handle"] = ".task-board-sort-handle";
}
$(".board-task-list").sortable(params);
// Set dropzone height to the height of the table cell
dropzone.each(function() {
$(this).css("min-height", $(this).parent().height());
});
dropzone.sortable(params);
};
Kanboard.BoardDragAndDrop.prototype.changeTaskState = function(taskId) {