palette[tooltip]: Simpler bounding rect-based positioning.

Allows us to use CSS margins on tooltips for more fine-grained
positioning.