Fixed #113 - scroll bouncing regardless of window size, fixes pull to refresh

This commit is contained in:
Max Lynch
2013-11-11 16:54:01 -06:00
parent 2ffb925a97
commit 262a4cc9a8
6 changed files with 21 additions and 35 deletions

View File

@ -641,6 +641,7 @@ angular.module('ionic.ui.list', ['ngAnimate'])
isEditing: '=',
deleteIcon: '@',
reorderIcon: '@',
hasPullToRefresh: '@',
onRefresh: '&',
onRefreshOpening: '&'
},
@ -663,7 +664,7 @@ angular.module('ionic.ui.list', ['ngAnimate'])
var lv = new ionic.views.ListView({
el: $element[0],
listEl: $element[0].children[0],
hasPullToRefresh: (typeof $scope.onRefresh !== 'undefined'),
hasPullToRefresh: (typeof $scope.hasPullToRefresh !== 'false'),
onRefresh: function() {
$scope.onRefresh();
},