[fx] better way to calculate where to set the tooltip arrow