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

Positioning fixes #43

Closed fastf0rward closed 9 years ago

fastf0rward commented 9 years ago

If the width of the tourtip + target element exceeds the container it's in, the left position of the tourtip used to become negative, leaving part of the tourtip off the screen.

This PR limits the left and right position of a tourtip when needed. Moreover, it debounces position updates on resizing of the browser window (with a 50ms threshold) to avoid sluggish browser resizing.

booleanbetrayal commented 9 years ago

LGTM! Thanks PR-O!