undoPositioned
undoPositioned(element) -> HTMLElement
Sets element
back to the state it was before Element.makePositioned was applied to it. Returns element
.
element
's absolutely positioned children will now have their positions set relatively to element
's nearest ancestor with a CSS position
of 'absolute'
, 'relative'
or 'fixed'
.
Example
<p>lorem […]</p>
<div id="container">
<div id="element" style="position: absolute; top: 20px; left: 20px;"></div>
</div>
$('container').makePositioned();
// -> HTMLElement
To return to the orginal layout, use Element.undoPositioned
;
$('container').undoPositioned();
// -> HTMLElement