Code Monkey home page Code Monkey logo

Comments (10)

RobbieTheWagner avatar RobbieTheWagner commented on May 25, 2024 1

I'm experiencing this issue as well. Disabling escapeWithReference does not change the behavior.

from ember-tooltips.

maxfierke avatar maxfierke commented on May 25, 2024 1

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.

from ember-tooltips.

eramod avatar eramod commented on May 25, 2024 1

This resolved the issue for me. Thanks!

from ember-tooltips.

maxfierke avatar maxfierke commented on May 25, 2024

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 popperContainer="body" to the tooltip?

from ember-tooltips.

eramod avatar eramod commented on May 25, 2024

@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.

First render:
Screen Shot 2020-01-07 at 11 11 26 AM

Second render:
Screen Shot 2020-01-07 at 11 09 43 AM

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?

from ember-tooltips.

maxfierke avatar maxfierke commented on May 25, 2024

Hi @eramod! Thanks for sharing the images! Since those values are calculated and populated by either popper.js or tooltip.js, I'll have to dig into those two a bit more to get a sense for what might be happening here.

It could be related to the escapeWithReference modifier, which ember-tooltips activates by default. Mind giving it a try with that setting disabled? The popperOptions section in the README has an example of how to disable this option.

from ember-tooltips.

maxfierke avatar maxfierke commented on May 25, 2024

Has this just started occurring recently (e.g. after an Ember upgrade?)

from ember-tooltips.

RobbieTheWagner avatar RobbieTheWagner commented on May 25, 2024

@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.

from ember-tooltips.

maxfierke avatar maxfierke commented on May 25, 2024

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 ember-wormhole with ember-maybe-in-element.

ember-wormhole used an afterRender-scheduled task (and an observer for changes) to do its positioning of a rendered element vs. the in-element helper, which I think does it in the same render cycle. It could also be related to the new async observer defaults in Octane, but that probably wouldn't explain the original poster's concern (or if y'all are not using Octane yet)

I'll try to get new version out in the next day or two.

from ember-tooltips.

RobbieTheWagner avatar RobbieTheWagner commented on May 25, 2024

@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!

from ember-tooltips.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.