don't show more autocomplete suggestion than fit the screen
This commit is contained in:
parent
18aac563f4
commit
75630f33d1
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ c3nav = {
|
|||
matches.sort(c3nav._typeahead_matches_compare);
|
||||
|
||||
$autocomplete.html('');
|
||||
for (i=0;i<matches.length;i++) {
|
||||
var max_items = Math.min(matches.length, Math.floor($('#resultswrapper').height()/55));
|
||||
for (i=0;i<max_items;i++) {
|
||||
$autocomplete.append(matches[i][0]);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue