diff --git a/core/src/components/content/content.scss b/core/src/components/content/content.scss index f734c1c48a..c0d7285a3a 100644 --- a/core/src/components/content/content.scss +++ b/core/src/components/content/content.scss @@ -181,4 +181,4 @@ ::slotted([slot="fixed"]) { position: absolute; -} \ No newline at end of file +} diff --git a/core/src/components/content/content.tsx b/core/src/components/content/content.tsx index c4abc02e65..b9b366073b 100644 --- a/core/src/components/content/content.tsx +++ b/core/src/components/content/content.tsx @@ -106,7 +106,8 @@ export class Content implements ComponentInterface { this.onScrollEnd(); } - componentDidLoad() { + @Listen('appload', { target: 'window' }) + onAppLoad() { this.resize(); } @@ -128,7 +129,7 @@ export class Content implements ComponentInterface { private resize() { if (this.fullscreen) { - readTask(this.readDimensions.bind(this)); + readTask(() => this.readDimensions()); } else if (this.cTop !== 0 || this.cBottom !== 0) { this.cTop = this.cBottom = 0; forceUpdate(this);