I’m not sure if this applies to your situation or not, but IE will not return dimensions for elements with position = absolute.  In fact, I’m not sure it even does it for position = relative.  Or maybe that’s only in certain circumstances.

 

Greg

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Geurts
Sent: Monday, April 10, 2006 11:47 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: [Rails-spinoffs] Element.getDimensions() support for IE?

 

Hey all,

I'm not sure if IE can support this, but I'm trying to get the dimensions of an element that has percentages for height/width.  In the example code below, I'm trying to get the dimensions for the 'MyCell' element.  Firefox supports Element.getDimensions('MyCell'), but IE returns 0 for the height & width returned by that call.

Thanks

Jim


___________________________________________

<table cellspacing="0" cellpadding="0" border="0" style="height:100%;width:100%">
    <tr>
        <td>
some text
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
    </tr>
    <tr height="100%">
        <td width="100%" id="MyCell" valign="top">
some other stuff
        </td>
    </tr>
</table>

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to