Thank you for the response.
However, it doesn't work. I have the similar configuration in the dialog.xml and editConfgi.xml, such as floating, height and width. The vertical scrollbar is showed up whenever the content is over the height, but not horizontal scrollbar, no matther how long the line is. Because the dialog can always be dragged wider due to floating option, maybe this is the case no horizontal scrollbar, just guess.