summaryrefslogtreecommitdiff
path: root/assets/js/src
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-02 15:47:13 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-02 15:47:13 -0400
commitf04ec0700cb111baabc49febf22425612a5b7c58 (patch)
treecc7439a273de42530f5cbc4106cd54a9e6f746a5 /assets/js/src
parenta0004fb1731994d7308165667fb1c2a0b1ed37f9 (diff)
Add column vertical scrolling and set column height dynamically
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);
}
});