Home Support Joomla joomla wrapper auto height not working ie9
joomla wrapper auto height not working ie9
Code vervangen in ROOT-JOOMLA\components\com_wrapper\views\wrapper\tmpl\default.php ROOT-JOOMLA\modules\mod_wrapper\tmpl\default.php Code: -- --- - - - - - - - function iFrameHeight() { var h = 0; if (!document.all) { h = document.getElementById('blockrandom').contentDocument.height; document.getElementById('blockrandom').style.height = h + 60 + 'px'; } else if (document.all) { h = document.frames('blockrandom').document.body.scrollHeight; document.all.blockrandom.style.height = h + 20 + 'px'; } } Replace all these lines with: Code: - - - -- - - function iFrameHeight() { var f = document.getElementById('blockrandom'); f.style.height = '100px' ; var d = (f.contentWindow.document || f.contentDocument) ; var h = Math.max(d.body.offsetHeight, d.body.scrollHeight) ; h += 20; f.style.height = h + 'px' ; f.setAttribute("height", h) ; } function iFrameHeight() { var h = 0; if (!document.all) { h = document.getElementById('blockrandom').contentDocument.height; document.getElementById('blockrandom').style.height = h + 60 + 'px'; } else if (document.all) { h = document.frames('blockrandom').document.body.scrollHeight; document.all.blockrandom.style.height = h + 20 + 'px'; } }
 
Zaanstart, Powered by Joomla!; Joomla templates by SG web hosting