rauchg / TextboxList

MooTools tokenizer
100 stars 35 forks source link

ENHANCEMENT: when Max=1, the only BitBox takes the whole space of the Textbox #1

Open myleslee opened 15 years ago

myleslee commented 15 years ago

I tried adding a listener of "onBitBoxAdd" to check if this.options.Max = 1, then appending a new class name (i.e. .textboxlist-bit-box-singleEntry which sets "float:none"; ) and leaving the current Textbox without creating any new bitEditable. (and continuing to do something else, like fetching data and filling up a form, in my case.)

However my code was never good to make such thing happen. I'm wondering if my direction is correct and if there's any better way to do it.

Thanks.