agarzola/jQueryAutocompletePlugin — Issue #25: result div not correct width when input has padding.
Author: mcornman
Created: 2011-11-02 15:43:13+00:00
State: open

Hi,

So I am new to github and the autocomplete plugin but I like it so much more than the one built into JQueryUI.

Amway, I found one thing that I wanted to submit as a UI adjustment: if input text element has left/right padding, result DIV does not come back at the correct width.

Line 765:

width: typeof options.width == "string" || options.width > 0 ? options.width : $(input).width(),

could be replaced with:

width: typeof options.width == "string" || options.width > 0 ? options.width : $(input).width() + parseInt($(input).css("padding-left")) + parseInt($(input).css("padding-right")),

I also have a nice demo page to add to this plugin showing above that includes some formatting. not sure how to attach but I could email.

thanks!