0

I am using Jquery Autocomplete. I tested 3 items it is pulling from the database.

Test 1: zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz Results shows it on one line in the dropdown

Test2: yyy yyyz yyy yyy yyy yyy yyy yyy yyy yyyyyyyyyyyyyyyy yyy yyy yyy Bad Results - Wraps and shows on 2 lines in the dropdown w/ the last yyy wrapping.

Test3: xxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Results shows it on one line.

WHY??? Does Test2 wrap. Anyone an expert on Jquery Autocomplete run into this. Or know how to solve it. I am using MVC asp.net very simple code...works great except for the above issues. Is this a Bug in Jquery.

Heres my jquery code:
/// <reference path="jquery-1.6.2-vsdoc.js" />
/// <reference path="jquery-ui.js" />
$(document).ready(function () {
    $('*[data-autocomplete-url]')
        .each(function () {
            $(this).autocomplete({
                minLength: 2,
                source: $(this).data("autocomplete-url")
            });
        });
});

0 Answers0