instance method Element.Layout#get

View source on GitHub →

Element.Layout#get(property) → Number

Retrieve the measurement specified by property. Will throw an error if the property is invalid.

Caveats
  • Element.Layout can measure the dimensions of an element hidden with CSS (display: none), but only if its parent element is visible.