Take horizontal scroll into account when positioning context menu

See http://jsfiddle.net/vLT6J/ for a demo of the problem.