Files
zulip/web/tests/scroll_util.test.cjs
Aman Agrawal dd33ad11f5 scroll_util: Account for $elem not direct child of scroll container.
When using `position` to get the scroll offset, it uses `offsetParent`
to calculate the offset which is not necessary the scroll container.

To account for this case, we use `offset` to correctly calculate
the position of element relative to the document.
2025-01-23 15:53:09 -08:00

2.6 KiB