fix dimen returned by getSize used as dimen in inputcontainer

pull/1696/head
chrox 9 years ago
parent 9d041fd5a3
commit 394c9cf948

@ -52,7 +52,8 @@ end
function InputContainer:paintTo(bb, x, y) function InputContainer:paintTo(bb, x, y)
if not self.dimen then 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 end
self.dimen.x = x self.dimen.x = x
self.dimen.y = y self.dimen.y = y

Loading…
Cancel
Save