projects
/
kengrimes.com
/
theme.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iframe resizer use internal body
[kengrimes.com/theme.git]
/
static
/
js
/
main.js
diff --git
a/static/js/main.js
b/static/js/main.js
index
a699357
..
b0ada37
100644
(file)
--- a/
static/js/main.js
+++ b/
static/js/main.js
@@
-22,5
+22,5
@@
window.onload = () => {
}
const resizeIFrame = (iframe) => {
iframe.style.height = 0
- iframe.style.height = document.body.scrollHeight + 'px';
+ iframe.style.height =
iframe.contentWindow.
document.body.scrollHeight + 'px';
}