@@ -215,10 +215,10 @@ function throttle(func, wait, options) {
215
215
} ) ;
216
216
217
217
// Recalculate slider view dimensions
218
- this . scope . $on ( 'reCalcViewDimensions' , angular . bind ( this , this . calcViewDimensions ) ) ;
218
+ this . scope . $on ( 'reCalcViewDimensions' , angular . bind ( this , this . resetSlider ) ) ;
219
219
220
220
// Recalculate stuff if view port dimensions have changed
221
- angular . element ( window ) . on ( 'resize' , angular . bind ( this , this . calcViewDimensions ) ) ;
221
+ angular . element ( window ) . on ( 'resize' , angular . bind ( this , this . resetSlider ) ) ;
222
222
223
223
this . initRun = true ;
224
224
@@ -256,8 +256,39 @@ function throttle(func, wait, options) {
256
256
if ( newValue === oldValue ) return ;
257
257
thrHigh ( ) ;
258
258
} ) ;
259
+
260
+
261
+ this . scope . $watch ( 'rzSliderFloor' , function ( newValue , oldValue ) {
262
+ if ( newValue === oldValue ) return ;
263
+ self . resetSlider ( ) ;
264
+ } ) ;
265
+
266
+ this . scope . $watch ( 'rzSliderCeil' , function ( newValue , oldValue ) {
267
+ if ( newValue === oldValue ) return ;
268
+ self . resetSlider ( ) ;
269
+ } ) ;
270
+
271
+ this . scope . $watch ( 'rzSliderForceRender' , function ( newValue , oldValue ) {
272
+ self . resetLabelsWidth ( ) ;
273
+ thrLow ( ) ;
274
+ thrHigh ( ) ;
275
+ self . resetSlider ( ) ;
276
+ } ) ;
277
+
278
+ } ,
279
+
280
+ resetSlider : function ( ) {
281
+ this . setMinAndMax ( ) ;
282
+ this . calcViewDimensions ( ) ;
283
+ this . updateCeilLab ( ) ;
284
+ this . updateFloorLab ( ) ;
259
285
} ,
260
286
287
+ resetLabelsWidth : function ( ) {
288
+ this . minLab . rzsv = undefined ;
289
+ this . maxLab . rzsv = undefined ;
290
+ } ,
291
+
261
292
/**
262
293
* Initialize slider handles positions and labels
263
294
*
0 commit comments