instance method Element#measure
Element#measure(property) → Number
Gives the pixel value of element
's dimension specified by
property
.
Useful for one-off measurements of elements. If you find yourself
calling this method frequently over short spans of code, you might want
to call Element.getLayout
and operate on the Element.Layout
object itself (thereby taking advantage of measurement caching).
This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.