Added multi-line support for the text panel.