fix(content): apply --offset-top and --offset-bottom values correctly (#20790)

fixes #20735
This commit is contained in:
Liam DeBeasi
2020-03-24 15:44:56 -04:00
committed by GitHub
parent 8660e61b96
commit 8680c2e83b
2 changed files with 4 additions and 3 deletions

View File

@ -106,7 +106,8 @@ export class Content implements ComponentInterface {
this.onScrollEnd(); this.onScrollEnd();
} }
componentDidLoad() { @Listen('appload', { target: 'window' })
onAppLoad() {
this.resize(); this.resize();
} }
@ -128,7 +129,7 @@ export class Content implements ComponentInterface {
private resize() { private resize() {
if (this.fullscreen) { if (this.fullscreen) {
readTask(this.readDimensions.bind(this)); readTask(() => this.readDimensions());
} else if (this.cTop !== 0 || this.cBottom !== 0) { } else if (this.cTop !== 0 || this.cBottom !== 0) {
this.cTop = this.cBottom = 0; this.cTop = this.cBottom = 0;
forceUpdate(this); forceUpdate(this);