PDA

View Full Version : [FIXED-801] Click on slider bar-no response



joelr
29 Mar 2010, 2:51 PM
Ext version tested:


Ext 3.2-rc



Adapter used:


ext



css used:


only default ext-all.css





Browser versions tested against:


FF 3.6.2 / FB 1.5.0



Operating System:


Mac OSX 10.5.8



Description:


Clicking on a Slider bar can throw an error and the thumb does not move.
This happens when minValue < 0.



Test Case:



new Ext.slider.SingleSlider({
width:350,
renderTo:document.body,
minValue: -100,
maxValue: 100,
value: 50
})
Steps to reproduce the problem:


Create the slider as above.
Click on the slider bar toward the left end. You should get
an error (e.g., "a is undefined") and the thumb should not move.




Possible fix:


The error is in Ext.slider.MultiSlider.getNearest(). The initial
value of nearestDistance is
this.maxValueIt should be set to a value of at least
(this.maxValue-this.minValue)In fact,
it should be a little bigger than this; otherwise you'll still get the
error if the user clicks on the "end cap" of the slider bar. I set it to

2*(this.maxValue-this.minValue) which works fine.

evant
29 Mar 2010, 5:37 PM
Thanks for the report, fixed in rev 6409.