Define fixed width for auto-complete dropdown

This commit is contained in:
Frédéric Guillot 2018-10-01 17:10:29 -07:00
parent eed3256824
commit 1db83cddd0
4 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -265,7 +265,6 @@ KB.component('select-dropdown-autocomplete', function(containerElement, options)
.attr('type', 'text')
.attr('placeholder', getPlaceholderValue())
.addClass('select-dropdown-input')
.style('width', (containerElement.offsetWidth - 30) + 'px')
.on('focus', toggleDropdownMenu)
.on('input', onInputChanged, true)
.build();

View File

@ -33,10 +33,12 @@
border: 1px solid #ccc
border-radius: 5px
background-color: #fff
width: 300px
input.select-dropdown-input
margin: 0 0 0 5px
border: none
height: 23px
width: 270px
&:focus
border: none
box-shadow: none