Element
- absolutize
- addClassName
- addMethods
- adjacent
- ancestors
- childElements
- classNames
- cleanWhitespace
- clonePosition
- cumulativeOffset
- cumulativeScrollOffset
- descendantOf
- descendants
- down
- empty
- extend
- fire
- firstDescendant
- getDimensions
- getElementsByClassName
- getElementsBySelector
- getHeight
- getOffsetParent
- getStyle
- getWidth
- hasClassName
- hide
- identify
- immediateDescendants
- insert
- inspect
- makeClipping
- makePositioned
- match
- next
- nextSiblings
- observe
- positionedOffset
- previous
- previousSiblings
- readAttribute
- recursivelyCollect
- relativize
- remove
- removeClassName
- replace
- scrollTo
- select
- setOpacity
- setStyle
- show
- siblings
- stopObserving
- toggle
- toggleClassName
- undoClipping
- undoPositioned
- up
- update
- viewportOffset
- visible
- wrap
- writeAttribute
clonePosition
1.6
clonePosition(element, source[, options]) -> HTMLElement
Clones the position and/or dimensions of source
onto element
as defined by the optional argument options
.
Note that target
will be positioned exactly like source
whether or not it is part of the same CSS containing block.
Options
Name | Default | Description |
---|---|---|
setLeft |
true |
clones source ’s left CSS property onto element . |
setTop |
true |
clones source ’s top CSS property onto element . |
setWidth |
true |
clones source ’s width onto element . |
setHeight |
true |
clones source ’s width onto element . |
offsetLeft |
0 |
Number by which to offset element ’s left CSS property. |
offsetTop |
0 |
Number by which to offset element ’s top CSS property. |