PDA

View Full Version : Ext.ux.Spinner this.field.adjustWidth does not exist



cginzel
4 Oct 2009, 8:12 AM
In FF I was getting "this.field.adjustWidth is not a function" for


doResize: function(w, h){
if (typeof w == 'number') {
this.el.setWidth(this.field.adjustWidth(w - this.trigger.getWidth()));
}
this.wrap.setWidth(this.el.getWidth() + this.trigger.getWidth());
},

and I'm not sure this is the correct solution but removing the call does seem to work for me. My code:


doResize: function(w, h){
if (typeof w == 'number') {
this.el.setWidth(w - this.trigger.getWidth());
}
this.wrap.setWidth(this.el.getWidth() + this.trigger.getWidth());
},

evant
4 Oct 2009, 8:27 PM
If you're referring to the example that's released with Ext, this particular issue is already fixed in SVN.

cginzel
5 Oct 2009, 6:00 AM
It is... thanks! :">

e1kraff
16 Nov 2009, 7:33 PM
Please public this code, I not have access in SVN