emposha / FCBKcomplete

Jquery facebook like(fancy) multi-select
http://www.emposha.com
383 stars 115 forks source link

FCBKcomplete fixed width #46

Closed mindaugasrimkus closed 13 years ago

mindaugasrimkus commented 13 years ago

How to set component width, if we change in CSS all FCBKcomplete instances get same width, we need change independent width from each others.

tpaksu commented 13 years ago

I've implemented that with this:

$(document).ready(function(){
    $(".facebook-auto").css("width","306px");
    $(".facebook-auto ul").css("width","306px");
    $("ul.holder").css("width","300px");
});

you could extend the $.fn with making this a function inside the plugin so you can use it like $("#myList").fcbksetwidth(blabla); but the code above works too.