Fixes most of #375
When re-running configure, such as when manually changing the slider width (as per the issue), the configurations set in the initialization of the object aren't restored, but reset to scratch, only to be repopulated with the defaults.
This fix uses the same logic per Rickshaw.Graph.js:249, where this.config is only initialized as an empty object if it doesn't already exist.
Use configs if they already exist on configure RangeSlider.Preview
The rest of the problem is in Graph.setSize, and the way it is being called in RangeSlider.Preview.
If either args.width or args.height aren't defined, then that dimension is computed from the style property using window.getComputedStyle (this would probably be more accurate and would definitely be faster using this.element.offsetWidth/Height).
But in RangeSliderPreview.configure, on lines 63 and 70, you can see that the setSize method is being called twice.
Set both width and height at the same time for RangeSlider.Preview pr…
So since we'll always have both a width and height argument now, either from the configuration call, or from the defaults, we can set both those elements at once, which is fine, see commit 1155048 above.
But I still see the issue per #375 (comment) where the new SVG isn't replacing the old SVG, or whatever the actual problem is.
support resizing preview range sliders; closes #375; closes #417; clo…
Thanks -- this is looking better with these changes merged in.