projects
/
kengrimes.com
/
theme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3fc85e9
)
iframe resizer use internal body, plus margin
author
ken
<ken@mihrtec.com>
Sat, 31 Mar 2018 00:59:49 +0000
(17:59 -0700)
committer
ken
<ken@mihrtec.com>
Sat, 31 Mar 2018 00:59:49 +0000
(17:59 -0700)
static/js/main.js
patch
|
blob
|
history
diff --git
a/static/js/main.js
b/static/js/main.js
index
b0ada37
..
13c4dae
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 =
iframe.contentWindow.document.body.scrollHeight
+ 'px';
+ iframe.style.height =
(iframe.contentWindow.document.body.scrollHeight * 1.2)
+ 'px';
}