mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(content): apply --offset-top and --offset-bottom values correctly (#20790)
fixes #20735
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user