File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ angular.module('ui.scroll', [])
208
208
}
209
209
} ) ;
210
210
if ( ! pending . length ) {
211
- adjustBuffer ( ) ;
211
+ $timeout ( ( ) => adjustBuffer ( ) ) ;
212
212
}
213
213
}
214
214
}
@@ -333,7 +333,7 @@ angular.module('ui.scroll', [])
333
333
let updates = updateDOM ( ) ;
334
334
335
335
// We need the item bindings to be processed before we can do adjustment
336
- $timeout ( ( ) => {
336
+ $scope . $apply ( ( ) => $ timeout( ( ) => {
337
337
338
338
// show elements after data binging has been done
339
339
updates . inserted . forEach ( w => w . element . removeClass ( 'ng-hide' ) ) ;
@@ -349,15 +349,14 @@ angular.module('ui.scroll', [])
349
349
if ( ! pending . length ) {
350
350
adapter . calculateProperties ( ) ;
351
351
}
352
- } ) ;
352
+ } ) ) ;
353
353
}
354
354
355
355
function adjustBufferAfterFetch ( rid ) {
356
356
let updates = updateDOM ( ) ;
357
357
358
358
// We need the item bindings to be processed before we can do adjustment
359
- $timeout ( ( ) => {
360
-
359
+ $scope . $apply ( ( ) => $timeout ( ( ) => {
361
360
// show elements after data binging has been done
362
361
updates . inserted . forEach ( w => w . element . removeClass ( 'ng-hide' ) ) ;
363
362
updates . prepended . forEach ( w => w . element . removeClass ( 'ng-hide' ) ) ;
@@ -379,7 +378,7 @@ angular.module('ui.scroll', [])
379
378
bindEvents ( ) ;
380
379
adapter . calculateProperties ( ) ;
381
380
}
382
- } ) ;
381
+ } ) ) ;
383
382
}
384
383
385
384
function fetch ( rid ) {
You can’t perform that action at this time.
0 commit comments