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

@ -181,4 +181,4 @@
::slotted([slot="fixed"]) {
position: absolute;
}
}

View File

@ -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);