Also for wizard

This commit is contained in:
Ruud
2012-05-05 00:19:53 +02:00
parent 11890d5d93
commit dcaca7294c
+6 -1
View File
@@ -969,6 +969,11 @@ Option.Choice = new Class({
}); });
$(tag).inject(self.tag_input); $(tag).inject(self.tag_input);
if(self.initialized > 1)
tag.setWidth();
else
(function(){ tag.setWidth(); }).delay(10, self);
self.tags.include(tag); self.tags.include(tag);
return tag; return tag;
@@ -1006,7 +1011,7 @@ Option.Choice = new Class({
self.replaceInput(); self.replaceInput();
self.setAllWidth(); self.setAllWidth();
}, },
setAllWidth: function(){ setAllWidth: function(){
var self = this; var self = this;
self.tags.each(function(tag){ self.tags.each(function(tag){