lib/cyberarm_engine/ui/container.rb in cyberarm_engine-0.6.0 vs lib/cyberarm_engine/ui/container.rb in cyberarm_engine-0.7.0

- old
+ new

@@ -63,9 +63,14 @@ self if hit?(x, y) end def recalculate @current_position = Vector.new(@margin_left, @margin_top) + unless @visible + @width = 0 + @height= 0 + return + end layout @width = @max_width ? @max_width : (@children.map {|c| c.x + c.width + c.margin_right }.max || 0).round @height = @max_height ? @max_height : (@children.map {|c| c.y + c.height + c.margin_bottom}.max || 0).round \ No newline at end of file