Properly resize task list height on column toggle #3069
This commit is contained in:
@@ -38,6 +38,7 @@ Kanboard.BoardColumnView.prototype.toggle = function(columnId) {
|
|||||||
else {
|
else {
|
||||||
this.hideColumn(columnId);
|
this.hideColumn(columnId);
|
||||||
}
|
}
|
||||||
|
this.app.get("BoardDragAndDrop").dragAndDrop();
|
||||||
};
|
};
|
||||||
|
|
||||||
Kanboard.BoardColumnView.prototype.hideColumn = function(columnId) {
|
Kanboard.BoardColumnView.prototype.hideColumn = function(columnId) {
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ Kanboard.BoardDragAndDrop = function(app) {
|
|||||||
|
|
||||||
Kanboard.BoardDragAndDrop.prototype.execute = function() {
|
Kanboard.BoardDragAndDrop.prototype.execute = function() {
|
||||||
if (this.app.hasId("board")) {
|
if (this.app.hasId("board")) {
|
||||||
this.dragAndDrop();
|
|
||||||
this.executeListeners();
|
this.executeListeners();
|
||||||
|
this.dragAndDrop();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -48,9 +48,13 @@ Kanboard.BoardDragAndDrop.prototype.dragAndDrop = function() {
|
|||||||
params.handle = ".task-board-sort-handle";
|
params.handle = ".task-board-sort-handle";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set dropzone height to the height of the table cell
|
// Set visible dropzone height to the height of the table cell
|
||||||
dropzone.each(function() {
|
dropzone.each(function() {
|
||||||
$(this).css("min-height", $(this).parent().height());
|
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", '');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
dropzone.sortable(params);
|
dropzone.sortable(params);
|
||||||
@@ -101,8 +105,8 @@ Kanboard.BoardDragAndDrop.prototype.refresh = function(data) {
|
|||||||
$("#board-container").replaceWith(data);
|
$("#board-container").replaceWith(data);
|
||||||
|
|
||||||
this.app.hideLoadingIcon();
|
this.app.hideLoadingIcon();
|
||||||
this.dragAndDrop();
|
|
||||||
this.executeListeners();
|
this.executeListeners();
|
||||||
|
this.dragAndDrop();
|
||||||
};
|
};
|
||||||
|
|
||||||
Kanboard.BoardDragAndDrop.prototype.executeListeners = function() {
|
Kanboard.BoardDragAndDrop.prototype.executeListeners = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user