Fix display problem when text line is too long