]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add reflow wrapper for slider
authorKevin Ball <kmball11@gmail.com>
Wed, 16 Nov 2016 00:21:27 +0000 (16:21 -0800)
committerKevin Ball <kmball11@gmail.com>
Wed, 16 Nov 2016 00:21:27 +0000 (16:21 -0800)
js/foundation.slider.js

index 5e386c95e805999c52593e90a0e3a0f2d5b2be7e..e7cdee4f14235baed4f6b5d4ad7b0bf4028c56f6 100644 (file)
@@ -104,6 +104,9 @@ class Slider {
     }
   }
 
+  _reflow() {
+    this.setHandles();
+  }
   /**
    * Sets the position of the selected handle and fill bar.
    * @function
@@ -367,7 +370,7 @@ class Slider {
     if(this.handles[1]) {
       this._eventsForHandle(this.$handle2);
     }
-    this.$element.on('mutateme.zf.trigger', this.setHandles.bind(this));
+    this.$element.on('mutateme.zf.trigger', this._reflow.bind(this));
   }