mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 13:12:34 +00:00
Fixed incorrect element positioning when using margin
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user