summaryrefslogtreecommitdiff
path: root/assets/js/src
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/src')
-rw-r--r--assets/js/src/board.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/assets/js/src/board.js b/assets/js/src/board.js
index 291ef737..40f140bf 100644
--- a/assets/js/src/board.js
+++ b/assets/js/src/board.js
@@ -43,11 +43,20 @@
});
}
+ function resize_column()
+ {
+ var position = $(".board-swimlane").position();
+ $(".board-task-list").height($(window).height() - position.top);
+ }
+
// Setup the board
function board_load_events()
{
+ // Resize column height
+ resize_column();
+
// Drag and drop
- $(".column").sortable({
+ $(".board-task-list").sortable({
delay: 300,
distance: 5,
connectWith: ".column",
@@ -261,6 +270,8 @@
board_load_events();
compactview_load_events();
keyboard_shortcuts();
+
+ $(window).resize(resize_column);
}
});