Update charts on orientation change

This commit is contained in:
Colin McLeod
2015-06-02 23:57:31 -07:00
parent 08ee37b6b3
commit 9e4ce83784
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ angular.module('app').directive('areaChart', ['$window', function ($window) {
* Watch for changes in the series data (mass changes, etc)
*/
scope.$watchCollection('series', render);
angular.element($window).bind('resize render', render);
angular.element($window).bind('orientationchange resize render', render);
function render() {
var width = element[0].parentElement.offsetWidth,