mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 05:02: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
|
||||
@children.each do |child|
|
||||
child.x += @x
|
||||
child.y += @y
|
||||
child.x += @x - style.margin_left
|
||||
child.y += @y - style.margin_top
|
||||
|
||||
child.stylize
|
||||
child.recalculate
|
||||
|
||||
Reference in New Issue
Block a user