PDA

View Full Version : [FIXED][3.0] Item.js setText



stever
7 Apr 2009, 2:18 PM
A menu does not have any method called doAutoSize. It's layout does. Any call to setText will fail. I guess no one calls it! ;)

Original:

setText : function(text){
this.text = text||' ';
if(this.rendered){
this.textEl.update(this.text);
this.parentMenu.doAutoSize();
}
}

Proposed:

setText : function(text){
this.text = text||' ';
if(this.rendered){
this.textEl.update(this.text);
this.parentMenu.layout.doAutoSize();
}
}

evant
7 Apr 2009, 3:10 PM
Fixed.