Take horizontal scroll into account when positioning context menu