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();
}
}
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();
}
}