fix dimen returned by getSize used as dimen in inputcontainer

This commit is contained in:
chrox
2015-10-26 23:53:07 +08:00
parent 9d041fd5a3
commit 394c9cf948

View File

@@ -52,7 +52,8 @@ end
function InputContainer:paintTo(bb, x, y)
if not self.dimen then
self.dimen = self[1]:getSize()
local content_size = self[1]:getSize()
self.dimen = Geom:new{w = content_size.w, h = content_size.h}
end
self.dimen.x = x
self.dimen.y = y