Make MsgDialog not put text outside the screen.