Catalog and offsetTop #872
-
I used scrollElementOffsetTop so the headings don't get blocked by my fixed header, but now the catalog no longer highlights that heading. How can I give offset top to the catalog's highlight ? |
Beta Was this translation helpful? Give feedback.
Answered by
Datthehooman
May 23, 2025
Replies: 1 comment
-
Sorry, my bad. I figured out that the offsetTop prop is used for this. The offsetTop amount needs to be more than the scrollElementOffsetTop amount so the element can be highlighted |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Datthehooman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry, my bad. I figured out that the offsetTop prop is used for this. The offsetTop amount needs to be more than the scrollElementOffsetTop amount so the element can be highlighted