Improve swimlane height
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -124,7 +124,6 @@ a.board-swimlane-toggle {
|
|||||||
|
|
||||||
/* board task list */
|
/* board task list */
|
||||||
.board-task-list {
|
.board-task-list {
|
||||||
height: 500px;
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -94,10 +94,18 @@ Board.prototype.refresh = function(data) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Board.prototype.resizeColumnHeight = function() {
|
Board.prototype.resizeColumnHeight = function() {
|
||||||
var position = $(".board-swimlane").position();
|
if ($(".board-swimlane").length > 1) {
|
||||||
|
$(".board-task-list").each(function() {
|
||||||
if (position) {
|
if ($(this).height() > 500) {
|
||||||
$(".board-task-list").height($(window).height() - position.top);
|
$(this).height(500);
|
||||||
|
}
|
||||||
|
else if ($(this).height() == 0) {
|
||||||
|
$(this).height(75);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$(".board-task-list").height($(window).height() - 145);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user