Edit this page

up.Layer up.Layer.prototype.sync()
Class method

This feature is experimental. It may be changed or removed in a future version.

Synchronizes this layer with the rest of the page.

For instance, a popup overlay will re-calculate its position arounds its anchoring element.

You only need to call this method after DOM changes unknown to Unpoly have brought overlays out of alignment with the rest of the page.