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.h eight to 0px, overflow hidden, and use a
timeout callback to increase element.style.h eight, until it matches
element.scrollH eight. However, scrollHeight is MSDOM. Is there a W3C
compliant alternative? Or a smarter approach altogether?
Gregor
--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
block element. The simple approach so far: create and fill container
element. Set element.style.h eight to 0px, overflow hidden, and use a
timeout callback to increase element.style.h eight, until it matches
element.scrollH eight. However, scrollHeight is MSDOM. Is there a W3C
compliant alternative? Or a smarter approach altogether?
Gregor
--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Comment