mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
update to alpha.28)
domElement renamed to nativeElement
This commit is contained in:
@ -5,7 +5,7 @@ export class ListVirtualScroll {
|
||||
this.list = list;
|
||||
this.content = this.list.content;
|
||||
|
||||
this.viewportHeight = this.content.domElement.offsetHeight;
|
||||
this.viewportHeight = this.content.ele.offsetHeight;
|
||||
|
||||
this.viewContainer = this.list.itemTemplate.viewContainer;
|
||||
|
||||
@ -31,7 +31,7 @@ export class ListVirtualScroll {
|
||||
}
|
||||
|
||||
resize() {
|
||||
this.viewportHeight = this.content.domElement.offsetHeight;
|
||||
this.viewportHeight = this.content.ele.offsetHeight;
|
||||
this.viewportScrollHeight = this.content.scrollElement.scrollHeight;
|
||||
|
||||
this.virtualHeight = this.list.items.length * this.itemHeight;
|
||||
@ -100,7 +100,7 @@ export class ListVirtualScroll {
|
||||
}
|
||||
|
||||
console.log('VIRTUAL SCROLL: scroll(scrollTop:', st, 'topIndex:', topIndex, 'bottomIndex:', bottomIndex, ')');
|
||||
console.log('Container has', this.list.domElement.children.length, 'children');
|
||||
console.log('Container has', this.list.ele.children.length, 'children');
|
||||
}
|
||||
|
||||
cellAtIndex(index) {
|
||||
|
Reference in New Issue
Block a user