instance method Element#clonePosition
Element#clonePosition(source[, options]) → Element
Clones the position and/or dimensions of source
onto element
as
defined by options
.
Valid keys for options
are: setLeft
, setTop
, setWidth
, and
setHeight
(all booleans which default to true
); and offsetTop
and offsetLeft
(numbers which default to 0
). Use these to control
which aspects of source
's layout are cloned and how much to offset
the resulting position of element
.
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.