Update of /cvsroot/phpwiki/phpwiki/lib/plugin
In directory usw-pr-cvs1:/tmp/cvs-serv12233/lib/plugin
Modified Files:
Transclude.php
Log Message:
Add javascript code to resize the transclude iframes when the browser
window is resized.
Index: Transclude.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/Transclude.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -2 -b -p -d -r1.2 -r1.3
--- Transclude.php 17 Sep 2002 02:34:18 -0000 1.2
+++ Transclude.php 17 Sep 2002 03:34:06 -0000 1.3
@@ -115,5 +115,12 @@ extends WikiPlugin
return;
}
- }';
+ }
+
+ window.addEventListener("resize", function() {
+ f = this.document.body.getElementsByTagName("iframe");
+ for (var i = 0; i < f.length; i++)
+ adjust_iframe_height(f[i]);
+ }, false);
+ ';
return HTML::script(array('language' => 'JavaScript',
|