API Reference > ui-core > Utilities > ScrollPositionMaintainer ScrollPositionMaintainer Class Beta A helper class to recursively save and restore scroll positions. Usage: // scroll positions are saved when `ScrollPositionMaintainer` object is created const maintainer = new ScrollPositionMaintainer(element); // can do something with `element` here // disposing the `maintainer` object restores scroll positions maintainer.dispose(); Implements IDisposable Methods Name Description constructor(el: Element): ScrollPositionMaintainer dispose(): void Defined in ui/core/src/ui-core/utils/ScrollPositionMaintainer.ts Line 22 Last Updated: 11 June, 2024