undoPositioned :: Element

undoPositioned(element) -> HTMLElement Sets element back to the state it was before 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 undoPositioned();

$('container').undoPositioned();

// -> HTMLElement

See also

Element: makePositioned

Prototype API 1.5.0 - prototypejs.org