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('type', 'text')
|
||||||
.attr('placeholder', getPlaceholderValue())
|
.attr('placeholder', getPlaceholderValue())
|
||||||
.addClass('select-dropdown-input')
|
.addClass('select-dropdown-input')
|
||||||
.style('width', (containerElement.offsetWidth - 30) + 'px')
|
|
||||||
.on('focus', toggleDropdownMenu)
|
.on('focus', toggleDropdownMenu)
|
||||||
.on('input', onInputChanged, true)
|
.on('input', onInputChanged, true)
|
||||||
.build();
|
.build();
|
||||||
|
|||||||
@@ -33,10 +33,12 @@
|
|||||||
border: 1px solid #ccc
|
border: 1px solid #ccc
|
||||||
border-radius: 5px
|
border-radius: 5px
|
||||||
background-color: #fff
|
background-color: #fff
|
||||||
|
width: 300px
|
||||||
input.select-dropdown-input
|
input.select-dropdown-input
|
||||||
margin: 0 0 0 5px
|
margin: 0 0 0 5px
|
||||||
border: none
|
border: none
|
||||||
height: 23px
|
height: 23px
|
||||||
|
width: 270px
|
||||||
&:focus
|
&:focus
|
||||||
border: none
|
border: none
|
||||||
box-shadow: none
|
box-shadow: none
|
||||||
|
|||||||
Reference in New Issue
Block a user