Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

result div not correct width when input has padding. #25

Open
mcornman opened this Issue · 6 comments

3 participants

@mcornman

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!

@agarzola
Owner

Hey, mcornman!

I appreciate the effort and your interest in helping to keep this project up to date! This would certainly be a useful update. You’re more than welcome to send me any relevant files to my email: alfonso [at] agarzola [dot] com.

Thanks again!

@mcornman

sent a couple of weeks ago... did you get?

@agarzola
Owner
@mcornman

OK no worries, just wanted to make sure it didn't hit the junk mail folder :)

@agarzola
Owner
@mihdan
width: typeof options.width == "string" || options.width > 0 
    ? options.width 
    : $(input).outerWidth(),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.