-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update calculation of element offsets (#1739)
* Update element offset computation Updated logic for computing element top and left offset to use document.documentElement and window, from document.body since document.body always returns 0 Signed-off-by: AngeloKarugo <52207274+AngeloKarugo@users.noreply.github.com> * made new element offset calculation method, changed scrollspy offset method --------- Signed-off-by: AngeloKarugo <52207274+AngeloKarugo@users.noreply.github.com>
- Loading branch information
1 parent
1b82062
commit fbd0564
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters