This commit is contained in:
Benau 2019-10-27 12:39:49 +08:00
parent 84d99ac690
commit adaaeb0e8e

View File

@ -61,12 +61,14 @@ void BubbleWidget::add()
m_element->setTabStop(true); m_element->setTabStop(true);
m_element->setNotClipped(true); m_element->setNotClipped(true);
irrwidget->setDrawBorder(true);
} }
void BubbleWidget::replaceText() void BubbleWidget::replaceText()
{ {
IGUIStaticText* irrwidget = (IGUIStaticText*) m_element; IGUIStaticText* irrwidget = (IGUIStaticText*) m_element;
// Take border into account for line breaking (happens in setText)
irrwidget->setDrawBorder(true);
stringw message = getText(); stringw message = getText();
EGUI_ALIGNMENT align = EGUIA_UPPERLEFT; EGUI_ALIGNMENT align = EGUIA_UPPERLEFT;