enable text-auto-resize for width

This commit is contained in:
Eduardo Bart
2012-04-10 23:59:05 -03:00
parent 2c53d0b1dc
commit 1d2f6c7e9f
3 changed files with 10 additions and 15 deletions

View File

@@ -1318,8 +1318,6 @@ void UIWidget::onStyleApply(const std::string& styleName, const OTMLNodePtr& sty
void UIWidget::onGeometryChange(const Rect& oldRect, const Rect& newRect)
{
callLuaField("onGeometryChange", oldRect, newRect);
if(m_textWrap && oldRect.size() != newRect.size())
updateText();
@@ -1328,6 +1326,8 @@ void UIWidget::onGeometryChange(const Rect& oldRect, const Rect& newRect)
if(!child->isAnchored())
child->bindRectToParent();
}
callLuaField("onGeometryChange", oldRect, newRect);
}
void UIWidget::onLayoutUpdate()