getOffset
Description​
Calculates the relative offset of a container to the scroll element.
- JavaScript
- C#
- Kotlin
getOffset(scrollElement: IContainer | null, container: IContainer): BoundsBounds GetOffset(IContainer? scrollElement, IContainer container)fun getOffset(scrollElement: IContainer?, container: IContainer): Bounds| Parameter | Summary |
|---|---|
scrollElementAll | The parent scroll element to which the relative position is computed. |
containerAll | The container element for which the relative position is calculated. |