Commit 80e2c59c authored by Rafal Zajac's avatar Rafal Zajac

Add reCalcViewDimensions event

parent 789475f3
......@@ -214,6 +214,9 @@ function throttle(func, wait, options) {
self.bindEvents();
});
// Recalculate slider view dimensions
this.scope.$on('reCalcViewDimensions', angular.bind(this, this.calcViewDimensions));
// Recalculate stuff if view port dimensions have changed
angular.element(window).on('resize', angular.bind(this, this.calcViewDimensions));
......
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