basic charlist

This commit is contained in:
Eduardo Bart
2011-08-26 15:00:22 -03:00
parent b58a1aa7d4
commit c60b677baa
13 changed files with 120 additions and 24 deletions

View File

@@ -20,9 +20,7 @@ void UILabel::setText(const std::string& text)
m_text = text;
// auto resize
if(!m_fixedSize)
resizeToText();
else if(!m_rect.isValid()) {
if(!m_fixedSize && !m_rect.isValid()) {
Size textSize = m_font->calculateTextRectSize(m_text);
if(m_rect.width() <= 0)
m_rect.setWidth(textSize.width());