In my use case, I need the offset to be a variable, which can be set at run time. To demonstrate this, I have modified examples/toc.html. I have set the initial offset to 200. If you click on the "Reset Offset to 0" link at top, it sets the offset to 0. However the scroll-spy does not reflect the updated offset.
Am I using the wrong approach, is there an alternative, or is this a new feature? :smile:
In my use case, I need the offset to be a variable, which can be set at run time. To demonstrate this, I have modified
examples/toc.html
. I have set the initial offset to 200. If you click on the "Reset Offset to 0" link at top, it sets the offset to 0. However the scroll-spy does not reflect the updated offset.Am I using the wrong approach, is there an alternative, or is this a new feature? :smile: