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

Not working with CSS transforms #31

Open
trusktr opened this issue Sep 20, 2018 · 2 comments
Open

Not working with CSS transforms #31

trusktr opened this issue Sep 20, 2018 · 2 comments

Comments

@trusktr
Copy link

trusktr commented Sep 20, 2018

react-hint is having the same issue as with react-tooltip and with popper.js (see solution concept there) in that it doesn't work with transformed containers (specifically scale).

Just try adding transform: translateX(-149px) scale(0.8); to your demo container, then you'll see the tooltips are no longer aligned properly.

It'd be awesome if this was supported!

I'm looking for a lib that can handle transforms. I might just have to roll my own if I can't find one.

@slmgc
Copy link
Owner

slmgc commented Sep 25, 2018

Thanks for this issue! I'll try to check if it's easily solvable and update you on my findings.

@slmgc slmgc added wontfix and removed enhancement labels Oct 1, 2018
@slmgc
Copy link
Owner

slmgc commented Oct 1, 2018

After giving it some thought, I've decided not to support this edge case as it complicates the implementation and will introduce more positioning issues. As a solution for your case, you can try applying the same transformations to the tooltip itself.

@slmgc slmgc closed this as completed Oct 1, 2018
@slmgc slmgc reopened this Aug 21, 2019
@slmgc slmgc removed the v4 label Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants