Fix #244, don't let autocomplete popup run off the RHS of the screen.