mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(content): apply --offset-top and --offset-bottom values correctly (#20790)
fixes #20735
This commit is contained in:
@ -181,4 +181,4 @@
|
||||
|
||||
::slotted([slot="fixed"]) {
|
||||
position: absolute;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user