Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling moves popover #712

Closed
ghost opened this issue Nov 28, 2018 · 2 comments
Closed

Scrolling moves popover #712

ghost opened this issue Nov 28, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 28, 2018

Hello! I'm currently writing a tour using bootstrap tour for a data visualization application, and there is one page where the data is visualized as nodes on an SVG. When I add one particular node as a step, I find that the popover moves away from the node as I scroll away (I'm using D3 as the data visualization library). Is there any way to fix this? I tried setting smartPlacement to false but it doesn't seem to work. I'll try and come up with a code demo soon.
screen shot 2018-11-28 at 6 07 18 pm
screen shot 2018-11-28 at 6 07 28 pm

@IGreatlyDislikeJavascript

Try my fork. The original Tour triggers a destroy and recreate of the popover every time you scroll. My fork solves this, and sticks the tour step to the element without any redraw.

Just take the bootstrap-tour.js from my fork, have a look at the added options etc.

#710

@ghost
Copy link
Author

ghost commented Dec 14, 2018

Your fork worked. Thanks!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant