Search code examples
prototypejs

Prototype getStyle('height') function


On elements for which no style height has been set, will getStyle('height') return the actual height of the element?

The prototype doc simply states "This method looks up the CSS property of an element whether it was applied inline or in a stylesheet"

thanks


Solution

  • No. If you want the actual height, use element.getHeight()