Git Product home page Git Product logo

Comments (7)

calebjacob avatar calebjacob commented on September 25, 2024

The problem is due to you not including Tooltipster's CSS. Make sure you have tooltipster.css included!

from tooltipster.

sparky672 avatar sparky672 commented on September 25, 2024

Quote: "The problem is due to you not including Tooltipster's CSS. Make sure you have tooltipster.css included!"

That's not true... it's included in the "resources" pane on the left using this URL...

http://calebjacob.com/tooltipster/css/tooltipster.css

WORKING: same jsFiddle with "position: 'top'"

http://jsfiddle.net/zyqjD/2/

BROKEN: same jsFiddle with "position: 'bottom'"

http://jsfiddle.net/zyqjD/1/

from tooltipster.

calebjacob avatar calebjacob commented on September 25, 2024

Woops, my bad. Not really sure what's going on here then. You can see it works fine here: http://jsfiddle.net/bZpHY/

Try and mess around with that to see if you can figure out what you're doing to break it. I have a slightly older version of Tooltipster running on my site - so I wouldn't recommend directly linking or copying those files (I need to get those updated). I'd be happy to help out more here, but unfortunately, I'm out of time right now. Let me know if you end up finding the problem!

from tooltipster.

sparky672 avatar sparky672 commented on September 25, 2024

I'm not really sure that I can take the blame...

As you can see in my jsFiddle, I have no other CSS whatsoever.

It's also broken on my production site and that's using the Tooltipster CSS that came with the latest version I downloaded yesterday.

Thanks for your help and I'm in no rush... just have to keep qTip a little while longer.

from tooltipster.

calebjacob avatar calebjacob commented on September 25, 2024

Aha!! Found your problem. :)

offsetY: '3'

You were using a string - instead of an integer. This completely destroys the math when adding strings and integers together. I'm going to add in extra protection against this, but for now, all you need to do is remove the quotes:

offsetY: 3

http://jsfiddle.net/zyqjD/7/

from tooltipster.

sparky672 avatar sparky672 commented on September 25, 2024

I'm very happy this is fixed and I should have realized that... except the fact that it was working until I changed from "top" to "bottom". It actually took the string and applied the offset.

Thank-you!

from tooltipster.

calebjacob avatar calebjacob commented on September 25, 2024

Yeah, that definitely made this one tricky to figure out. No idea why the numbers were coming out right when using other positions. I reviewed all the math for the different positions - the offsets are all being added correctly.

Anyways, the master branch is now up to date with the extra protection against strings. :)

from tooltipster.

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.