Commit 9ccda2c9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* add resizeIFrameOnLoad that can be used to adjust the height of iframe according to its content.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28345 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6dabb283
......@@ -228,7 +228,17 @@ function showPopik(dom_id, what, delay){\n
obj.style.display=\'none\';}\n
}\n
\n
addLoadEvent(indexAllCheckBoxesAtBTInstallationOnLoad)
var resizeIFrameOnLoad = function() {\n
var iframe_list = window.getElementsByTagAndClassName("iframe", "auto_height");\n
for( var i=0; i<iframe_list.length; i++) {\n
var iframe = iframe_list[i];\n
var doc = iframe.contentWindow.document.documentElement;\n
var body = iframe.contentWindow.document.body;\n
iframe.style.height = doc.offsetHeight + \'px\';\n
}\n
}\n
\n
addLoadEvent(indexAllCheckBoxesAtBTInstallationOnLoad);
]]></string> </value>
</item>
......
2009-08-12 Kazuhiko
* add resizeIFrameOnLoad that can be used to adjust the height of iframe according to its content.
2009-08-05 Kazuhiko
* escape LINE SEPARATOR (U+2028) and PARAGRAPH SEPARATOR (U+2029) in fckeditor_wysiwyg_support otherwise FCKeditor will raise an error.
......
801
\ No newline at end of file
802
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment