paperlined.org
dev > web > tooltips > holy_grail
document updated 13 years ago, on Sep 8, 2011

Requirements

Alright. Finding tooltip nirvana is harder than I thought.

Are my needs so hard to fulfill? Is the only path to nirvana forgetting my needs?

Design

There are two pieces to this:

1) Something to calculate the size of the inner content, before we pop it up.

2) Something that automatically decides which position it should pop up at, so that it avoids the sides of the browser window, when scrolling, etc.

Design: 1) determine size

jQuery already includes this functionality, since it's needed for slide(). See here for more, or search for the variable "cssShow" in the jQuery source code.

Design: 2) determine position

Shouldn't be too hard, really?

Implementation

Non-minified versions of other tooltip implementations, to learn techniques from:

My own project?

If I end up having to create my own (because I can't find any existing code that works):