Fix autocomplete suggestions not aligned

This commit is contained in:
christianesperar 2016-06-25 20:13:49 +08:00
parent f5f525fcae
commit e35452aaa7

View File

@ -626,8 +626,7 @@
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12">AutoComplete</label>
<div class="col-md-9 col-sm-9 col-xs-12">
<input type="text" name="country" id="autocomplete-custom-append" class="form-control col-md-10" style="float: left;" />
<div id="autocomplete-container" style="position: relative; float: left; width: 400px; margin: 10px;"></div>
<input type="text" name="country" id="autocomplete-custom-append" class="form-control col-md-10"/>
</div>
</div>
<div class="form-group">
@ -1546,8 +1545,7 @@
// initialize autocomplete with custom appendTo
$('#autocomplete-custom-append').autocomplete({
lookup: countriesArray,
appendTo: '#autocomplete-container'
lookup: countriesArray
});
});
</script>