mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(content): fullscreen values are recomputed on visible content (#26847)
resolves #26844
This commit is contained in:
@ -149,6 +149,16 @@ export class Content implements ComponentInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.resizeTimeout = setTimeout(() => {
|
this.resizeTimeout = setTimeout(() => {
|
||||||
|
/**
|
||||||
|
* Resize should only happen
|
||||||
|
* if the content is visible.
|
||||||
|
* When the content is hidden
|
||||||
|
* then offsetParent will be null.
|
||||||
|
*/
|
||||||
|
if (this.el.offsetParent === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.resize();
|
this.resize();
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user