Less hacky solution to tooltip positioning