diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-12-11 20:01:17 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-12-11 20:01:17 -0500 |
commit | f83178bef8084bfe57963b1820e73b4a9ab0bab5 (patch) | |
tree | 8b1fab6360e3e4a7cd050727d526a907b895ed7c /assets/js/components | |
parent | ed406b7997f11c630aed336f0480f65862e47eb9 (diff) |
Handle dropdown scrolling when larger that the viewport
Diffstat (limited to 'assets/js/components')
-rw-r--r-- | assets/js/components/select-dropdown-autocomplete.js | 1 |
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) |