diff --git a/lib/simple_ui/core/single_child_element.lua b/lib/simple_ui/core/single_child_element.lua index b2a8677..1f2086c 100644 --- a/lib/simple_ui/core/single_child_element.lua +++ b/lib/simple_ui/core/single_child_element.lua @@ -9,6 +9,7 @@ function element:layout() if not self.child then return end self.child.constraints = self.constraints self.child:layout() + self.child.offset = self.offset:copy() end function element:update(dt)