class method Element.relativize

View source on GitHub →

Element.relativize(element) → Element

Turns element into a relatively-positioned element without changing its position in the page layout.

Used to undo a call to Element.absolutize.

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.