summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Vorobyev <vorobyev@coacha.com>2017-02-23 21:57:43 +0900
committerKonstantin Vorobyev <vorobyev@coacha.com>2017-02-23 21:57:43 +0900
commitde6f9452a124e76a614b494012f779854bf59ad0 (patch)
treebcaa9e877f226e88e983cb3372d406e8a7ca6057
parent8b8ccf4a604f010fd4fadd53161e307959c5fb58 (diff)
Even more simple: hide columns first, then resize task lists
-rw-r--r--assets/js/src/BoardDragAndDrop.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/assets/js/src/BoardDragAndDrop.js b/assets/js/src/BoardDragAndDrop.js
index 67f287ad..77d22b55 100644
--- a/assets/js/src/BoardDragAndDrop.js
+++ b/assets/js/src/BoardDragAndDrop.js
@@ -48,13 +48,9 @@ Kanboard.BoardDragAndDrop.prototype.dragAndDrop = function() {
params.handle = ".task-board-sort-handle";
}
- // Set visible dropzone height to the height of the table cell
+ // Set dropzone height to the height of the table cell
dropzone.each(function() {
- if ($(this).filter(':visible').length) { // This drop zone is visible
- $(this).css("min-height", $(this).parent().height());
- } else { // Remove min-height
- $(this).css("min-height", '');
- }
+ $(this).css("min-height", $(this).parent().height());
});
dropzone.sortable(params);