     @hasChanged = false
 
   asDisposable: (subscription) -> new Disposable -> subscription.off()
+
+  floatToPercent: (w) -> "#{Math.round w * 100}%"

    if wholeWidth > 1
      widths = widths.map (w) -> w * (1 / wholeWidth)

    @columnsWidths = widths.map (w) -> "#{Math.round w * 100}%"

    @requestUpdate(true)


  #     ######   #######  ########  #######  ##     ## ##    ##  ######

  getColumnsWidths: ->
    return @columnsPercentWidths if @columnsPercentWidths?

    count = @table.getColumnsCount()
    @columnsWidths = (1 / count for n in [0...count])
    @columnsPercentWidths = @columnsWidths.map @floatToPercent

  setColumnsWidths: (columnsWidths) ->
    restWidth = 1
