Re: Which DOM property for determining vertical size?
- From: Martin Honnen <mahotrash@xxxxxxxx>
- Date: Wed, 30 Apr 2008 16:40:15 +0200
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/
.
- References:
- Which DOM property for determining vertical size?
- From: Gregor Kofler
- Which DOM property for determining vertical size?
- Prev by Date: Which DOM property for determining vertical size?
- Next by Date: Re: Using scriptaculous, how to trigger mouseover effect ONLY if moused over for a period of time
- Previous by thread: Which DOM property for determining vertical size?
- Next by thread: Re: Which DOM property for determining vertical size?
- Index(es):