mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
toolbar refactor wip
This commit is contained in:
@ -56,15 +56,15 @@ export class Ion {
|
||||
}
|
||||
|
||||
getDimensions() {
|
||||
return dom.getDimensions(this.elementRef.nativeElement);
|
||||
return dom.getDimensions(this);
|
||||
}
|
||||
|
||||
width() {
|
||||
return this.getDimensions().width;
|
||||
return this.getDimensions().w;
|
||||
}
|
||||
|
||||
height() {
|
||||
return this.getDimensions().height;
|
||||
return this.getDimensions().h;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user