Commit ec8b49ab authored by kvindasAB's avatar kvindasAB

Improvements over re-render mechanisms.

Fixes issues presented on hidden tab rendering.
parent 07ec8169
......@@ -215,10 +215,10 @@ function throttle(func, wait, options) {
});
// Recalculate slider view dimensions
this.scope.$on('reCalcViewDimensions', angular.bind(this, this.calcViewDimensions));
this.scope.$on('reCalcViewDimensions', angular.bind(this, this.resetSlider));
// Recalculate stuff if view port dimensions have changed
angular.element(window).on('resize', angular.bind(this, this.calcViewDimensions));
angular.element(window).on('resize', angular.bind(this, this.resetSlider));
this.initRun = true;
......@@ -268,6 +268,13 @@ function throttle(func, wait, options) {
self.resetSlider();
});
this.scope.$watch('rzSliderForceRender', function(newValue, oldValue){
self.resetLabelsWidth();
thrLow();
thrHigh();
self.resetSlider();
});
},
resetSlider: function() {
......@@ -277,6 +284,11 @@ function throttle(func, wait, options) {
this.updateFloorLab();
},
resetLabelsWidth: function() {
this.minLab.rzsv = undefined;
this.maxLab.rzsv = undefined;
},
/**
* Initialize slider handles positions and labels
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment