Even more simple: hide columns first, then resize task lists

This commit is contained in:
Konstantin Vorobyev 2017-02-23 21:57:43 +09:00
parent 8b8ccf4a60
commit de6f9452a1
1 changed files with 2 additions and 6 deletions

View File

@ -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);