Skip to content

Commit

Permalink
fix(content): apply --offset-top and --offset-bottom values correctly (
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Mar 24, 2020
1 parent 8660e61 commit 8680c2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/components/content/content.scss
Expand Up @@ -181,4 +181,4 @@

::slotted([slot="fixed"]) {
position: absolute;
}
}
5 changes: 3 additions & 2 deletions core/src/components/content/content.tsx
Expand Up @@ -106,7 +106,8 @@ export class Content implements ComponentInterface {
this.onScrollEnd();
}

componentDidLoad() {
@Listen('appload', { target: 'window' })
onAppLoad() {
this.resize();
}

Expand All @@ -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);
Expand Down

0 comments on commit 8680c2e

Please sign in to comment.