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

.popup('reposition') #89

Open
joaofig opened this issue Feb 2, 2018 · 1 comment
Open

.popup('reposition') #89

joaofig opened this issue Feb 2, 2018 · 1 comment

Comments

@joaofig
Copy link

joaofig commented Feb 2, 2018

I found about this function by reading through the source code, and I have been using it to reposition my tooltips when they overlap the container's limits. By handling the 'onopen' event, I can check whether the tooltip fully fits the view and if not, I can change the offsets and, by calling this function, the tooltip gets repositioned. Just setting the offsets has no effect.

My question is why is this function not documented? As I read in the code, it is being used internally.

Thanks for the great code!

@embluk
Copy link

embluk commented Mar 2, 2018

Yes, this would be very useful as I found I had the same issues with tool tips becoming out of view within the browser view port. I second this as being useful!

Care to show an example?

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

2 participants