Closed lerous closed 12 years ago
We need a way to recalculate the ratio stuff. Next version should definitely support adding elements or recalculate the content size.
I solved it, I death the event everytime I new that class...
but here's a new problem, our server is mootools 1.45 and my sample is doesn't works on it....
and when I update the more.js to 1.31, and I can't drag the knob on the bar....
Scrollbar should definitely work with MooTools 1.4.5 see http://jsfiddle.net/UYZZ6/3/
auch....my whole code have to change...
Using MooTools Core 1.4.5 and More 1.3.1 is not a good idea IMO.
I wanna click a button add a new element to the Slider content, so I let the build a new Scrollbar bind on this button so I can make the knob always move to the last, whatever how width the content is...
It's ok in Firefox and Chrome
But here is a problem in IE, when I click the knob or bar, the
this.half
return several numbers to me, and the last number is return the first number to initializeI realized everytime I redraw the Scrollbar, the Scrollbar is loop the times I redrawed it...but the IE seems return the number is the first tiem I initialize...