mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-18 22:02:34 +00:00
Implemented Slider (still have some positioning issues to resolve but it works), added files for ListBox, Radio, and EditBox, implemented dragging support in GuiState.
This commit is contained in:
@@ -93,8 +93,8 @@ module CyberarmEngine
|
||||
|
||||
# Move child to parent after positioning
|
||||
@children.each do |child|
|
||||
child.x += @x - style.margin_left
|
||||
child.y += @y - style.margin_top
|
||||
child.x += (@x + @style.border_thickness_left) - style.margin_left
|
||||
child.y += (@y + @style.border_thickness_top) - style.margin_top
|
||||
|
||||
child.stylize
|
||||
child.recalculate
|
||||
|
||||
Reference in New Issue
Block a user