Define fixed width for auto-complete dropdown
This commit is contained in:
2
assets/css/app.min.css
vendored
2
assets/css/app.min.css
vendored
File diff suppressed because one or more lines are too long
2
assets/js/app.min.js
vendored
2
assets/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user