R – Prototype getStyle(‘height’) function

prototypejs

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

Best Answer

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