calebjacob / tooltipster

A jQuery tooltip plugin
MIT License
2.76k stars 480 forks source link

Incorrect position when position is set to bottom or top #737

Closed aradalvand closed 6 years ago

aradalvand commented 6 years ago

Hey there. I've used Tooltipster in many of my projects, but today, I've been beating my head against the wall for quite a few hours. See the below image: https://i.imgur.com/ago8cbo.png As you can see, tooltipster's position in not accurate (There's 4px difference ('left' property must be 4px more)). and also there's no padding in the element, it's just an 'a'element with margin: 0 5px. https://i.imgur.com/ocWyMlc.png I have to say that there's no special incorrect CSS for my element because I tried it out on all of elements in the page, and there was always 4px difference (when position is set to bottom or top) I have no more idea what's wrong here. Thanks in advance

aradalvand commented 6 years ago

Isn't there anyone here who can help me with this?

louisameline commented 6 years ago

Hi, can you replicate in a very simple jsfiddle?

aradalvand commented 6 years ago

Thank you for replying. It seems it have a correct position in jsFiddle, I also have another project where I used the same version of tooltipster but that apparently works perfectly. So does that mean that there is something wrong with own my project?

louisameline commented 6 years ago

I guess, can't be certain without debugging :/

louisameline commented 6 years ago

I'll close this issue until you can reproduce or pinpoint the issue. Thank you

aradalvand commented 6 years ago

Sorry for late response, I was too busy. So, what should I do now? What do you think about it? there must be something wrong with JS codes or CSSs?

louisameline commented 6 years ago

No worries. Probably, you'll have to debug to make sure.

aradalvand commented 6 years ago

I just noticed that I have this problem only when I'm using 'tooltipster-shadow' theme. There's nothing wrong with other themes. any ideas?

louisameline commented 6 years ago

Maybe you tried to edit it and resulted in this?