Re: Which DOM property for determining vertical size?



Gregor Kofler wrote:
I want to do my own vertical (or whatever direction) smooth expand of a block element. The simple approach so far: create and fill container element. Set element.style.height to 0px, overflow hidden, and use a timeout callback to increase element.style.height, until it matches element.scrollHeight. However, scrollHeight is MSDOM. Is there a W3C compliant alternative?

Somewhere in the future it might be an W3C standard: http://www.w3.org/TR/cssom-view/#scroll-attributes

--

Martin Honnen
http://JavaScript.FAQTs.com/
.