Fixed incorrect element positioning when using margin

This commit is contained in:
2020-04-06 09:38:30 -05:00
parent d8551c7428
commit ed061c8408

View File

@@ -93,8 +93,8 @@ module CyberarmEngine
# Move child to parent after positioning # Move child to parent after positioning
@children.each do |child| @children.each do |child|
child.x += @x child.x += @x - style.margin_left
child.y += @y child.y += @y - style.margin_top
child.stylize child.stylize
child.recalculate child.recalculate