UI Slider won't initialize properly when the element is hidden
Hello,
I hope the authors of ui.slider and dimensions plug-in are on-list.
I have a problem initializing a slider when it is hidden.
The actual size comes back as 0 and the slider locks and won't move.
If I unhide it and re-initialize it, the actual size comes back as 100
and the slider works as it should.
The dimensions outerHeight call is not working for hidden elements
even though it says it does.
I changed the code in ui.slider.js:
var height = this.element.css("height");
height = height.replace(/px/,"");
this.actualSize = parseInt(height);
//this.actualSize = this.element.outerHeight();
this.properties = ['top', 'height']; // changes top to bottom
Now it works properly. (At least on Mac and Linux, windows is still
broken)
Also. . .
It seems that the vertical slider is upside down.
A slider from 0 to 100 starts at the top, that seems a little weird.
A volume control on a stereo or a light fader or such would have 0 at
the bottom of a vertical slider.
I had to set minValue to 100 and maxValue to 0 to make it work
properly.
May I petition for it to be flipped 180 degress vertically.
Thanks,
ml