I had to solve this problem for a website (http://www.re-entry.ca)
that had an iframe in the middle of a table. My solution used JS to
calculate the height approximately and resize the iframe on load and
resize events. Not GWT, but probably easy enough to add:
<script type="text/javascript">
function expandContentPane()
{
var winH = 621; //initial guess
if (parseInt(navigator.appVersion) > 3)
{
if (typeof(window.innerWidth) == 'number')
{
winH = window.innerHeight;
}
else if (document.documentElement &&
(document.documentElement.clientWidth ||
document.documentElement.clientHeight))
{
winH = document.documentElement.clientHeight;
}
else if (document.body && (document.body.clientWidth ||
document.body.clientHeight))
{
winH = document.body.clientHeight;
}
var newH = winH - 260;
if (newH < 410)
{
newH = 410;
}
document.getElementById('content_row').height = newH;
document.getElementById('content_pane_l').height = newH;
document.getElementById('content_pane_m').height = newH;
document.getElementById('content_pane_r').height = newH;
}
}
onresize = expandContentPane;
onload = expandContentPane;
</script>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---