mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
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.
2.6 KiB
2.6 KiB