emposha / FCBKcomplete

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

feed css width (and parent container height) are set to zero if element was hidden when initialized with fbckcomplete() #5

Closed mjhca closed 13 years ago

mjhca commented 14 years ago

If element is hidden (i.e. display:none) when initialized with ('element').fbckcomplete( .... ), and then subsequently shown, then the feed.css('width') and the parent container height are set to zero and therefore the contents are never displayed. This means that the autocomplete functionality is never visible.

While this could be worked around by not attaching fbckcomplete() to the form element until the element is visible, I think this could be worked around quite easily by calculating the width/height when the feed is shown rather than on init, thereby providing more flexibility on the timing of attaching fbckcomplete to an (initially) hidden form or hiden form element.

dreamwing commented 13 years ago

the solution is a good idea.

emposha commented 13 years ago

Hi mjhca, can you provide more info, because I tried with display:none for select and plugin still work great

emposha commented 13 years ago

at 2.7.5 added new option attachto with ability to attach fcbkcomplete element to any html element.