Skip to content

Commit 835dd64

Browse files
committed
Fixing cropping of iframed webclient
1 parent 632b958 commit 835dd64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_datafiles/html/public/webclient.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
// For some reason safari acts weird if we don't reset this first.
1212
wcIframe.width = "0px";
1313
wcIframe.height = "0px";
14-
// Set proper height/width
15-
wcIframe.width = contentContainer.offsetWidth;
16-
wcIframe.height = contentContainer.offsetHeight;
14+
// Set proper height/width - use clientWidth/clientHeight to get inner dimensions
15+
wcIframe.width = contentContainer.clientWidth;
16+
wcIframe.height = contentContainer.clientHeight;
1717

1818
}
1919
window.addEventListener("load", resizeClientIFrame);

0 commit comments

Comments
 (0)