fix offset in SingleChildElement

This commit is contained in:
PeaAshMeter 2026-05-05 19:06:07 +03:00
parent 393638bb71
commit 460e8b78b7

View File

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