Fix the problem that long msgs make splitpane and scrollpane horizontically extend