class method Element.getLayout
Element.getLayout(element, preCompute) → Element.Layout
Returns an instance of Element.Layout
for measuring an element's
dimensions.
Note that this method returns a new Element.Layout
object each time
it's called. If you want to take advantage of measurement caching,
retain a reference to one Element.Layout
object, rather than calling
Element.getLayout
whenever you need a measurement. You should call
Element.getLayout
again only when the values in an existing
Element.Layout
object have become outdated.
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.