mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
@@ -11,10 +11,9 @@ class E2EPage {
|
||||
@ViewChild('content') content: ElementRef;
|
||||
|
||||
constructor() {
|
||||
for (var i = 0; i < 14; i++) {
|
||||
for (var i = 0; i < 200; i++) {
|
||||
this.items.push(i);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
headerFn(record: any, index: number, records: any[]) {
|
||||
|
||||
@@ -334,6 +334,8 @@ export class VirtualScroll implements DoCheck, AfterContentInit, OnDestroy {
|
||||
throw 'virtualItem required within virtualScroll';
|
||||
}
|
||||
|
||||
this._init = true;
|
||||
|
||||
this.update(true);
|
||||
|
||||
this._platform.onResize(() => {
|
||||
@@ -398,9 +400,6 @@ export class VirtualScroll implements DoCheck, AfterContentInit, OnDestroy {
|
||||
|
||||
// ******** DOM READ ****************
|
||||
readDimensions(function() {
|
||||
// we were able to read good DOM dimension data, let's do this!
|
||||
self._init = true;
|
||||
|
||||
processRecords(self._data.renderHeight,
|
||||
self._records,
|
||||
self._cells,
|
||||
|
||||
Reference in New Issue
Block a user