Subversion Repositories ZenDark

Compare Revisions

Ignore whitespace Rev 9 → Rev 10

/content-zenphoto.php
16,5 → 16,5
</div>
<div>
<iframe id="iframe-page" src="<?php echo $options['zenphoto_url']; ?>" height="100%"
onLoad="sdt_delay();sdt_getURL('iframe-page');" scrolling="no"></iframe>
onLoad="sdt_autoResize('iframe-page');sdt_getURL('iframe-page');" scrolling="no"></iframe>
</div>
/js/iframe.js
1,9 → 1,4
function sdt_autoResize(id){
var newheight;
newheight = document.getElementById(id).contentWindow.document.body.scrollHeight;
document.getElementById(id).height = (newheight) + "px";
 
// form now on we try to push some css inside the iframe to
// modify #main width to 638px (maximum allowed to keep everything
// inside 700px) without editing the Zenphoto css
19,6 → 14,12
var tt1 = document.getElementById(id).contentWindow.document.createTextNode(def);
ss1.appendChild(tt1);
}
 
//must set the new height after the resize!
var newheight;
newheight = document.getElementById(id).contentWindow.document.body.scrollHeight;
document.getElementById(id).height = (newheight) + "px";
}
 
function sdt_delay(){