We should set TextWidget.parent as dirty.

pull/2139/head
Hzj_jie 8 years ago
parent 3bc5e90a52
commit 273a0cb7ee

@ -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)

Loading…
Cancel
Save