Prevent tooltip off rhs

This is working for me to prevent tooltips going off the right hand side of the screen.  The CSS changes are necessary to stop the tooltip from wrapping, else this won't work.