Improved tooltips so that they no longer clip off the screen edges.