Fixed tooltip arrow position calculation