fix(content): fullscreen values are recomputed on visible content (#26847)

resolves #26844
This commit is contained in:
Liam DeBeasi
2023-02-22 15:08:04 -05:00
committed by GitHub
parent 2fd13610c4
commit 6dcd98b26a

View File

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