class method Element.undoPositioned

View source on GitHub →

Element.undoPositioned(element) → Element

Sets element back to the state it was in before Element.makePositioned was applied to it.

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'.

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.