sorich87/bootstrap-tour

onShown not firing

maxmann74 opened this issue · 1 comments

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

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.