lib/cyberarm_engine/ui/elements/container.rb in cyberarm_engine-0.10.2 vs lib/cyberarm_engine/ui/elements/container.rb in cyberarm_engine-0.11.0

- old
+ new

@@ -65,11 +65,14 @@ if is_root? @width = @style.width = window.width @height = @style.height = window.height else + @width, @height = 0, 0 + _width = dimensional_size(@style.width, :width) _height= dimensional_size(@style.height,:height) + @width = _width ? _width : (@children.map {|c| c.x + c.outer_width }.max || 0).round @height = _height ? _height : (@children.map {|c| c.y + c.outer_height}.max || 0).round end \ No newline at end of file