def layout_containing(component)
      return self if children.include?(component)

      found = nil
      children.each { |c|
        next if found

        if c.kind_of?(Layout)
          found = c unless c.layout_containing(component).nil?
        end
      }

      found
    end
def layout_containing(component)
      return self if children.include?(component)

      found = nil
      children.each { |c|
        next if found

        if c.kind_of?(Layout)
          found = c unless c.layout_containing(component).nil?
        end
      }

      found
    end
Return layout containing component
 If coordinates are contained in a child in current layout