summaryrefslogtreecommitdiff
path: root/assets/js/src/Board.js
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-22 21:50:08 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-22 21:50:08 -0400
commit1cc99dcf2a0e3a3397bfd4c644122f493a73d31b (patch)
treebdcc1c99b4d6d01a394c691df9618f3dec1bb7bc /assets/js/src/Board.js
parent89ca0908014413e17adf73de55ff1731b9729706 (diff)
Improve swimlane height
Diffstat (limited to 'assets/js/src/Board.js')
-rw-r--r--assets/js/src/Board.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/assets/js/src/Board.js b/assets/js/src/Board.js
index edf041f6..ad1903d4 100644
--- a/assets/js/src/Board.js
+++ b/assets/js/src/Board.js
@@ -94,10 +94,18 @@ Board.prototype.refresh = function(data) {
};
Board.prototype.resizeColumnHeight = function() {
- var position = $(".board-swimlane").position();
-
- if (position) {
- $(".board-task-list").height($(window).height() - position.top);
+ if ($(".board-swimlane").length > 1) {
+ $(".board-task-list").each(function() {
+ if ($(this).height() > 500) {
+ $(this).height(500);
+ }
+ else if ($(this).height() == 0) {
+ $(this).height(75);
+ }
+ });
+ }
+ else {
+ $(".board-task-list").height($(window).height() - 145);
}
};