Handle dropdown scrolling when larger that the viewport
This commit is contained in:
parent
ed406b7997
commit
f83178bef8
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
border: 1px solid #ccc
|
||||
border-radius: 3px
|
||||
box-shadow: 0 6px 12px rgba(0, 0, 0, .175)
|
||||
overflow: scroll
|
||||
|
||||
.select-dropdown-menu-item
|
||||
white-space: nowrap
|
||||
|
|
|
|||
Loading…
Reference in New Issue