mirror of
https://github.com/friendica/friendica
synced 2025-04-24 03:50:12 +00:00
Automatically resize iframe if no height was provided.
This commit is contained in:
parent
747607fe97
commit
439aee0a82
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
function resizeIframe(obj) {
|
||||
obj.style.height = 0;
|
||||
obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
|
||||
}
|
||||
|
||||
function openClose(theID) {
|
||||
if(document.getElementById(theID).style.display == "block") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue