I think it was because I had position: absolute on the element. How that makes it not have a height in IE is beyond me, but I was able to work around the whole issue by changing the position attribute to relative, eliminating the need to even know the height after all.
Greg > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:rails-spinoffs- > [EMAIL PROTECTED] On Behalf Of Gregory Hill > Sent: Thursday, January 19, 2006 11:31 AM > To: [email protected] > Subject: [Rails-spinoffs] how can I get offsetHeight in IE? > > Ok, > This is driving me nuts. I am trying to determine the height of > an element in IE, but offsetHeight returns undefined. I looped through > all of the attributes that contain the word 'height', both in the > element and in the element.style, but they are all undefined. Is there > a better way to determine the rendered height of an element? Is there > something I need to do to the element so that the offsetHeight gets > calculated? Any help would be appreciated. Looking through the > scriptaculous and prototype functions, it seems they all rely on > offsetHeight and have no alternate means of determining it. Am I just > SOL? > > Greg > _______________________________________________ > Rails-spinoffs mailing list > [email protected] > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs _______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
