PDA

View Full Version : [FIXED-412][3.x]Slider.onResize method doesn't call superclass.onResize



Munter
12 Jan 2010, 7:05 AM
Slider.onResize doesn't call it's superclasses onRender method.

Thus the 'resize' event on Slider itself doesn't get fired.

Here is the override to fix the problem:



Ext.override(Ext.Slider, {
onResize : function(w, h){
Ext.Slider.superclass.onResize.apply(this, arguments);

this.innerEl.setWidth(w - (this.el.getPadding('l') + this.endEl.getPadding('r')));
this.syncThumb();
}
});

--
Munter

hendricd
12 Jan 2010, 10:03 AM
Fixed in SVN for Ext 3.0.3 and higher.