Constrain tooltips to be displayed on the screen.
Fix the failing front end test when run in PhantomJS.
Merge pull request #3511 from mozilla/issue_3496-tooltips-off-screen

Constrain tooltips to be displayed on the screen.