Set a max right value for the popup

This is to stop it going off the screen when you're typing on the far
right hand side of the textarea