We should set TextWidget.parent as dirty.

This commit is contained in:
Hzj_jie
2016-07-07 22:38:24 -07:00
parent 3bc5e90a52
commit 273a0cb7ee

View File

@@ -51,7 +51,9 @@ end
function TextWidget:setText(text)
self.text = text
self:updateSize()
UIManager:setDirty(self, "partial")
UIManager:setDirty(self.parent, function()
return "partial", self.dimen
end)
end
function TextWidget:paintTo(bb, x, y)