Skip to content
This repository

Width of token-input-dropdown-facebook on same page #98

Closed
akkias opened this Issue May 11, 2011 · 5 comments

4 participants

Akshay Sonawane foufos Christoph Burgmer mattejames
Akshay Sonawane
akkias commented May 11, 2011

Hello,

I want to use this plugin multiple places (with different width) on same page. what do i have to do.

sorry for my bad english :)

foufos
foufos commented May 11, 2011

hello,

what I did in this situation is set the css of ul.token-input-list width: 100%
and add the code:
width: $(token_list).width() + parseInt($(token_list).css("padding-left"), 10) + parseInt($(token_list).css("padding-right"), 10),

in the function show_dropdown() .css

so the width is dynamic according to the parent

Akshay Sonawane
akkias commented May 11, 2011

Hey many thanks
You rocks buddy!!!!!

Akshay Sonawane
akkias commented May 11, 2011

Can we add placeholder text into it.....?

Christoph Burgmer

See #99 for a placeholder implementation

Akshay Sonawane akkias closed this May 13, 2011
mattejames

Thanks for the solution code foufos -- I'd be very interested in having this change be made to the master branch.

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.