-
Notifications
You must be signed in to change notification settings - Fork 141
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
Positioning the pointer/arrow so it's not always centered in 3.x #381
Comments
Hi @artikhurana -- It may depend on the CSS of the parent element(s). Would you be able to share some CSS for those and a snippet of the template surrounding the use of ember-tooltips? Does it exhibit the same behavior when passing |
@maxfierke I just installed ember-tooltips and I'm running into this issue as well - the tooltip renders too close to the element it's attached to on the first render, causing it to overlap the element. The difference in the css appears to be that the transform:translate3d property on the tooltip is calculated differently on the tooltip's first render than on subsequent renders. I've attached screenshots of the tooltip DOM element on the first and second render for reference. I tried your suggestion of setting popperContainer="body", but that didn't change it in any way. Any ideas on what might be causing this? |
Hi @eramod! Thanks for sharing the images! Since those values are calculated and populated by either It could be related to the |
I'm experiencing this issue as well. Disabling |
Has this just started occurring recently (e.g. after an Ember upgrade?) |
@maxfierke I am not sure exactly when it started happening. An Ember upgrade or yarn upgrade or something could have triggered it. I do not think it was always a problem, but maybe it was and I just didn't notice. |
Hey folks, I looked into this a bit yesterday and it seems like it may have been caused by some change in Ember 3.14 or 3.15 that seems to have been resolved by merging #388 to replace
I'll try to get new version out in the next day or two. |
@maxfierke I believe I did start seeing the issue only after updating to Octane, so the observer changes sounds like a likely culprit. Thanks for tracking this down! |
Released a fix in 3.4.2. Hopefully this also fixes the original issue as well, but if not, let me know and I can re-open this. |
This resolved the issue for me. Thanks! |
I upgraded ember tooltip version 2.x to 3.x and found that tooltip is not centered when I hover on text first time and the snapshot is attached for reference -:
After that when I hover again then it is working fine and the snapshot is attached for reference -:
What I believe is that due to lazy loading, the CSS properties are not getting set properly. However, on the next hover, since the element is already present in DOM, the properties get applied correctly.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: