adjusts tooltip bubble to bounding box