summaryrefslogtreecommitdiff
path: root/assets/js/src/BoardDragAndDrop.js
diff options
context:
space:
mode:
authorTeamjungla{CODE} <junglacode@gmail.com>2016-08-20 13:47:12 -0500
committerTeamjungla{CODE} <junglacode@gmail.com>2016-08-20 13:47:12 -0500
commitfe8e9cdcfe3afc1475c7e7f4392d2b2cc601a12b (patch)
tree001403874e9e3716de7c6d51a9f536e9b3c3be5e /assets/js/src/BoardDragAndDrop.js
parentb1e795fc5b45369f7b9b565b1e106d2673361977 (diff)
parent98efcf21e355ed6ac3827058b99df86ca67c75bb (diff)
Merge branch 'stable' of https://github.com/kanboard/kanboard
Diffstat (limited to 'assets/js/src/BoardDragAndDrop.js')
-rw-r--r--assets/js/src/BoardDragAndDrop.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/assets/js/src/BoardDragAndDrop.js b/assets/js/src/BoardDragAndDrop.js
index 4d2ae3ec..c8e24444 100644
--- a/assets/js/src/BoardDragAndDrop.js
+++ b/assets/js/src/BoardDragAndDrop.js
@@ -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) {