sorich87 / bootstrap-tour

Quick and easy product tours with Twitter Bootstrap Popovers
http://bootstraptour.com
MIT License
4.43k stars 941 forks source link

onShown not firing #735

Open maxmann74 opened 4 years ago

maxmann74 commented 4 years ago

I am unable to get onShown event to fire. These events work fine: onShow, onNext, onPrev.

Has anyone else seen this issue? There are things I need to check for when each step is shown (to manipulate elements etc).

Thanks

maxmann74 commented 4 years ago

FYI:

I was able to figure this out. This line in bootstrap.tour.standalone.js throws an error for me: offsetBottom = $(document).outerHeight() - tipOffset.top - $tip.outerHeight();

$(document).outerHeight() shows "not available" in chrome debug tools. I changed this to $(document).height(). Everything seems to work, it no longer errors, and the onShown event now fires.