-
16 Jan 2013 8:57 AM #1
[4.1.1a] Ext.slider.Multi setMinValue and setMaxValue don't fire change event
[4.1.1a] Ext.slider.Multi setMinValue and setMaxValue don't fire change event
REQUIRED INFORMATION
Ext version tested:- Ext 4.1.1a
- Firefox 18.0 (Windows)
- ____
- Suppose you have a slider with a defined minValue, maxValue and one or more values. If a call to setMinValue or setMaxValue causes one of slider's values to snap into the new valid range, the change event does not get fired.
- Create a multislider with defined minValue and maxValue.
- Set 2 values, one at the min and one at the max.
- Add an event handler for the change event.
- Increase the minValue and decrease the maxValue so that the values are adjusted to fit within the valid range.
- The change event handler should be called
- The change event handler does not get called
Clicking the "Shrink" button should pop up a message saying "Slider value changed!".Code:Ext.create('Ext.window.Window', { layout : 'vbox', autoShow : true, items : [ { xtype : 'multislider', minValue : 0, maxValue : 100, width : 100, values : [0, 100], listeners : { change : function () { alert("Slider value changed!") } } }, { xtype : 'button', text : 'Shrink', listeners : { click : function (button) { var slider = button.up('window').down('multislider'); slider.setMinValue(slider.minValue + 1); slider.setMaxValue(slider.maxValue - 1); } } } ] });
HELPFUL INFORMATION
Debugging already done:- In Multi.js (Ext.slider.Multi), the setMinValue and setMaxValue functions update the thumb values directly but don't bother firing any events. Looking at the code for setValue, I'm wondering if setMinValue and setMaxValue should also make a call to checkDirty.
- not provided
- only default ext-all.css
- Win7 Pro
-
16 Jan 2013 12:15 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
Thanks for the report! I have opened a bug in our bug tracker.
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-8250
in
4.2.1.


Reply With Quote