# File lib/asciidoctor/table.rb, line 163
  def assign_width(total_width, even_width)
    if total_width > 0
      width = ((@attributes['width'].to_f / total_width) * 100).floor
    else
      width = even_width
    end
    @attributes['colpcwidth'] = width
    if parent.attributes.has_key? 'tableabswidth'
      @attributes['colabswidth'] = ((width.to_f / 100) * parent.attributes['tableabswidth']).round
    end

    nil
  end