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

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

  getColumnsWidths: ->
    return @columnsWidths if @columnsWidths?

    count = @table.getColumnsCount()
    @columnsWidths = ("#{Math.round 1 / count * 100}%" for n in [0...count])

  setColumnsWidths: (columnsWidths) ->
    restWidth = 1

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

    @columnsWidths = widths
    @columnsPercentWidths = widths.map @floatToPercent

    @requestUpdate(true)

