Merge pull request #217 from christianesperar/master

Fix autocomplete suggestions not aligned
This commit is contained in:
Christian Esperar 2016-06-25 20:15:18 +08:00 committed by GitHub
commit a9d77abf41

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>