Closed chehrhar closed 3 years ago
I just ran into the same issue; simply copy-pasting the tutorial example into codepen and hovering over the button demonstrates the lack of offset:
I updated the tutorial to use the new setOptions callback
Great! It's clear now (to me anyhow, sample size 1 and all) what the sematics are.
When enabling the event listener in the show() function, the original options are overridden in the tutorial with new options. It took me some time to figure out why the originial options wouldn't have any effect. Instead, you should restore the originial options in the show() function.