mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- CComponentsText: add possibility to set a text border
This commit is contained in:
@@ -353,8 +353,8 @@ void CTextBox::refreshTextLineArray(void)
|
||||
lineBreakWidth = std::max(m_nMaxWidth, m_cFrameTextRel.iWidth - 2*text_border_width);
|
||||
}
|
||||
|
||||
if(m_nMaxTextWidth)
|
||||
lineBreakWidth = m_nMaxTextWidth;
|
||||
if(m_nMaxTextWidth)
|
||||
lineBreakWidth = m_nMaxTextWidth - 2*text_border_width;
|
||||
|
||||
//TRACE("[CTextBox] line %d: lineBreakWidth %d\n", __LINE__, lineBreakWidth);
|
||||
|
||||
|
Reference in New Issue
Block a user