diff --git a/js/ext/angular/src/directive/ionicContent.js b/js/ext/angular/src/directive/ionicContent.js index 3de74f1331..0101ebc36d 100644 --- a/js/ext/angular/src/directive/ionicContent.js +++ b/js/ext/angular/src/directive/ionicContent.js @@ -72,17 +72,17 @@ angular.module('ionic.ui.content', []) $timeout(function() { // Add watch to the container element's height to fire Scroller.resize event - $scope.$watch - ( - function () { - return typeof($element) !== "undefined" && $element.length > 0 && $element[0].clientHeight > 0 ? $element[0].clientHeight : 0; - }, - function (newValue, oldValue) { - if (newValue != oldValue && $scope.$parent && $scope.$parent.scrollView && $scope.$parent.scrollView.resize) { - $scope.$parent.scrollView.resize(); - } - } - ); + // $scope.$watch + // ( + // function () { + // return typeof($element) !== "undefined" && $element.length > 0 && $element[0].clientHeight > 0 ? $element[0].clientHeight : 0; + // }, + // function (newValue, oldValue) { + // if (newValue != oldValue && $scope.$parent && $scope.$parent.scrollView && $scope.$parent.scrollView.resize) { + // $scope.$parent.scrollView.resize(); + // } + // } + // ); sv = new ionic.views.Scroller({ el: $element[0]