mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
Content/list fix
This commit is contained in:
@ -53,10 +53,13 @@ export class Aside {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getContentElement() {
|
getContentElement() {
|
||||||
if(!this.content || !this.content.domElement) {
|
if(!this.content && !this.content.domElement) {
|
||||||
console.error('Aside: make sure to specify a content target using #var on the element');
|
console.error('Aside: make sure to specify a content target using #var on the element');
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
if(this.content instanceof Node) {
|
||||||
|
return this.content;
|
||||||
|
}
|
||||||
return this.content.domElement;
|
return this.content.domElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,9 +27,9 @@ export class List {
|
|||||||
this.config = List.config.invoke(this);
|
this.config = List.config.invoke(this);
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log('Content', this.content);
|
|
||||||
|
|
||||||
if(util.isDefined(this.virtual)) {
|
if(util.isDefined(this.virtual)) {
|
||||||
|
console.log('Content', this.content);
|
||||||
console.log('Virtual?', this.virtual);
|
console.log('Virtual?', this.virtual);
|
||||||
console.log('Items?', this.items.length, 'of \'em');
|
console.log('Items?', this.items.length, 'of \'em');
|
||||||
this._initVirtualScrolling();
|
this._initVirtualScrolling();
|
||||||
|
Reference in New Issue
Block a user