fix offset in SingleChildElement
This commit is contained in:
parent
393638bb71
commit
460e8b78b7
@ -9,6 +9,7 @@ function element:layout()
|
|||||||
if not self.child then return end
|
if not self.child then return end
|
||||||
self.child.constraints = self.constraints
|
self.child.constraints = self.constraints
|
||||||
self.child:layout()
|
self.child:layout()
|
||||||
|
self.child.offset = self.offset:copy()
|
||||||
end
|
end
|
||||||
|
|
||||||
function element:update(dt)
|
function element:update(dt)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user