We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 632b958 commit 835dd64Copy full SHA for 835dd64
_datafiles/html/public/webclient.html
@@ -11,9 +11,9 @@
11
// For some reason safari acts weird if we don't reset this first.
12
wcIframe.width = "0px";
13
wcIframe.height = "0px";
14
- // Set proper height/width
15
- wcIframe.width = contentContainer.offsetWidth;
16
- wcIframe.height = contentContainer.offsetHeight;
+ // Set proper height/width - use clientWidth/clientHeight to get inner dimensions
+ wcIframe.width = contentContainer.clientWidth;
+ wcIframe.height = contentContainer.clientHeight;
17
18
}
19
window.addEventListener("load", resizeClientIFrame);
0 commit comments