You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Jesse Hu (JIRA)" <ji...@apache.org> on 2008/07/16 07:47:31 UTC
[jira] Commented: (SHINDIG-151) gadgets.window.adjustHeight() fails
on IE 6
[ https://issues.apache.org/jira/browse/SHINDIG-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613843#action_12613843 ]
Jesse Hu commented on SHINDIG-151:
----------------------------------
Hi. I came into this issue too.
It's strange. adjustHeight() works in samplecontainer.html but not in a real site with opensocial container function. But ... it works well in FF3 on both samplecontainer.html and real opensocial site (doesn't work in FF2 and IE7). You can use the dynamic height demo app http://www.google.com/ig/modules/aue07otr.xml to try it out. Can anyone resovle this?
Thanks.
> gadgets.window.adjustHeight() fails on IE 6
> -------------------------------------------
>
> Key: SHINDIG-151
> URL: https://issues.apache.org/jira/browse/SHINDIG-151
> Project: Shindig
> Issue Type: Bug
> Components: Features (Javascript)
> Environment: IE 6, windows XP
> Reporter: Paul Lindner
>
> From our esteemed js guru Mike Austin:
> The problem is in this code:
>
> var oh = docEl.offsetHeight;
>
> if (docEl.clientHeight != oh) {
> sh = body.scrollHeight;
> oh = body.offsetHeight;
> }
>
> Both offsetHeight and clientHeight are 0, so the code doesn't get executed for IE6. You can change the test to "if(document.all)" for a fix, but someone at google should look deeper into this, especially if it worked before.
>
> Mike
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.