Revision: 1768
http://gatewiki.svn.sourceforge.net/gatewiki/?rev=1768&view=revAuthor: ian_roberts
Date: 2009-10-28 13:56:14 +0000 (Wed, 28 Oct 2009)
Log Message:
-----------
Use the same JavaScript trick as I use with the sventon iframe to calculate a
fixed height based on the viewport size without having to set html and body in
the css to have height 100% (which would cause problems elsewhere).
Modified Paths:
--------------
trunk/cow/grails-app/views/page/_iframeBody.gsp
Modified: trunk/cow/grails-app/views/page/_iframeBody.gsp
===================================================================
--- trunk/cow/grails-app/views/page/_iframeBody.gsp 2009-10-28 13:54:55 UTC (rev 1767)
+++ trunk/cow/grails-app/views/page/_iframeBody.gsp 2009-10-28 13:56:14 UTC (rev 1768)
@@ -1 +1,9 @@
-<iframe width="100%" height="100%" frameborder="0" src="${thisPage.printURI}"/>
+<script type="text/javascript">
+ document.write('<iframe width="100%" height="'+((window.innerHeight?window.innerHeight:document.body.clientHeight) - 100)+'" frameborder="0" src="${thisPage.printURI.encodeAsJavaScript()}"><div class="message">Your browser does not appear to support iframes, please <a href="${thisPage.printURI.encodeAsJavaScript()}">view the content directly</a>.</div></iframe>');
+</script>
+<noscript>
+ <iframe width="100%" height="100%" frameborder="0" src="${thisPage.printURI}">
+ <div class="message">Your browser does not appear to support iframes, please
+ <a href="${thisPage.printURI}">view the content directly</a>.</div>
+ </iframe>
+</noscript>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
gatewiki-commits mailing list
gatewiki-commits@...
https://lists.sourceforge.net/lists/listinfo/gatewiki-commits