-
Notifications
You must be signed in to change notification settings - Fork 480
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
Tooltipster dimensions sometimes wrong #600
Comments
Hi, AFAIK css transitions are not supposed to change anything from the javascript point of view, if they do then I'd suspect a browser issue. And when Tooltipster measures the content, it's a clone which is not supposed to be animated anyway. Does the bug occur with other transitions? Does it occur when you don't set minWidth and maxWidth ? By any chance, does your content hold images? If yes, then take a look at http://iamceege.github.io/tooltipster/#faq_sizeissue Not sure that I'll be able to help more without a a working example, I can't try to replicate something out of the blue. |
Hello, thank you very much, for such fast response. Tooltipster is great :-) Because I met some weirdness while verifying your questions (I met another problem with transition - more info bellow), I prepared isolated example for you: It is fresh tooltipster (just downloaded), with example based on from http://iamceege.github.io/tooltipster/#ajax You can see following weird behavior (Google Chrome 52 on Win 10): ajax loaded tooltip, on first mouseover
subsequent mouseover on the same tooltip displays everything correctly (correct dimensions, currect grow transition, no scrollbar) normal (no ajax) tooltip is OK too (including animation). as response to previous questions - minWidth/maxWidth had no effect, content does not hold images (simple spans/paragraphs of word-breakable text) |
Thank you for the example and compliments :) I can see it happen when the animation is As for the |
Same erratic behavior here. In my case the tooltip is triggered a couple of seconds after $.ready Note: Calling or no AnimateUpDown didn't make a difference.
HTML:
`
This is how it looks:
![image](https://cloud.githubusercontent.com/assets/9550197/18203500/1256eb32-7120-11e6-8764-a7d76695fffb.png)
|
I'll do this shortly, it probably shouldn't take long. Please use the |
Should be fixed now in 4.1.5. Thank you. |
Thank you very much |
When tooltipster is used with ajax loaded data (functionBefore as in example),
tooltip is sometimes displayed wrong:
it appears wrong in about 10% of cases (consistently in our project), css width/height is not recalculated
on content update in such cases. it may be colliding with grow animation - without any animation, it works fine.
options:
minWidth: 200,
maxWidth: 400,
animation: 'grow',
delay: 0,
animationDuration: 150,
sorry that i'm unable to provide public accessible working example
The text was updated successfully, but these errors were encountered: