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

refresh() does not re-position tooltip #32

Open
agidusko opened this issue Jul 1, 2013 · 0 comments
Open

refresh() does not re-position tooltip #32

agidusko opened this issue Jul 1, 2013 · 0 comments

Comments

@agidusko
Copy link

agidusko commented Jul 1, 2013

The refresh() method does not realign the tooltip when the dimensions of the element being tooltipp-ed change.

To demonstrate, go to http://heelhook.github.io/chardin.js/, change the height of the image to 100 pixels, then resize the browser to trigger chardinJs.refresh() . The bounding box will be redrawn, but the tooltip will not be relocated.

To correct, I added "this._place_tooltip(el);" to line 50, within the resize() method after the call to _position_helper_layer(),of the latest rendered JavaScript file. I apologize that I am not good enough at GitHub or CoffeeScript to submit a pull request.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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