DaftMonk / angular-tour

AngularJS directive for giving an interactive tour of your website.
http://daftmonk.github.io/angular-tour/
MIT License
609 stars 137 forks source link

fix(containerElement): make sure tour tip left positioning accounts for fixed container element #41

Closed fastf0rward closed 9 years ago

fastf0rward commented 9 years ago

I believe line 280 in tour.js takes care of the correct top value, even in case of a custom fixed container:

top = top - container[0].getBoundingClientRect().top + container[0].scrollTop;
booleanbetrayal commented 9 years ago

Thanks @PR-O !