powerange icon indicating copy to clipboard operation
powerange copied to clipboard

How to redraw slider on resize windows?

Open exdeniz opened this issue 10 years ago • 1 comments

Resize 100% div and this - http://i.imgur.com/3SBKe6y.png

exdeniz avatar May 21 '14 06:05 exdeniz

I solved it this way:

add this to powerange.js

Powerange.prototype.responsive = function() { if (this.options.step) this.step(this.slider.offsetWidth, this.handle.offsetWidth); this.setStart(this.element.value); };

and this to your script

$(window).resize(function() { your_slider_reference.responsive(); }

Insider77 avatar Dec 03 '15 23:12 Insider77