summaryrefslogtreecommitdiff
path: root/assets/js/components
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-12-11 20:01:17 -0500
committerFrederic Guillot <fred@kanboard.net>2016-12-11 20:01:17 -0500
commitf83178bef8084bfe57963b1820e73b4a9ab0bab5 (patch)
tree8b1fab6360e3e4a7cd050727d526a907b895ed7c /assets/js/components
parented406b7997f11c630aed336f0480f65862e47eb9 (diff)
Handle dropdown scrolling when larger that the viewport
Diffstat (limited to 'assets/js/components')
-rw-r--r--assets/js/components/select-dropdown-autocomplete.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/assets/js/components/select-dropdown-autocomplete.js b/assets/js/components/select-dropdown-autocomplete.js
index 565be21d..5ed7ab9c 100644
--- a/assets/js/components/select-dropdown-autocomplete.js
+++ b/assets/js/components/select-dropdown-autocomplete.js
@@ -161,6 +161,7 @@ KB.component('select-dropdown-autocomplete', function(containerElement, options)
.style('top', componentPosition.bottom + 'px')
.style('left', componentPosition.left + 'px')
.style('width', componentPosition.width + 'px')
+ .style('maxHeight', (window.innerHeight - componentPosition.bottom - 20) + 'px')
.mouseover(onItemMouseOver)
.click(onItemClick)
.for('li', itemElements)