Positioning of arrow element is incorrect when element is at edge of screen #588

Open
jmargulis opened this Issue Oct 22, 2016 · 0 comments

Projects

None yet

1 participant

@jmargulis

If you choose an element that is relatively small at the edge of the screen, the tour step is repositioned to stay on the screen, but the arrow element pointing at the intended element does not quite get back to the center of that element.
Here is an example:
image
Here is a screenshot of the code:
image

@jmargulis jmargulis added a commit to jmargulis/bootstrap-tour that referenced this issue Oct 22, 2016
@jmargulis jmargulis Fix for issue #588
Position the arrow based on it’s previous positioning. Use the
difference it had from the halfway (50%) point and add that the the
previous calculation to properly determine it’s new position.
13316e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment