From ebdc712e7d50200de7c0575df5681157ddb32240 Mon Sep 17 00:00:00 2001 From: Travis Russi Date: Sat, 30 Nov 2013 17:34:10 -0800 Subject: [PATCH] commented out the element height watch; hard-coded timeout seems to work fine --- js/ext/angular/src/directive/ionicContent.js | 22 ++++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) 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]