   #    ##       ##     ## ##       ##     ## ##     ## ##  ####       ##
   #    ##    ## ##     ## ##       ##     ## ##     ## ##   ### ##    ##
   #     ######   #######  ########  #######  ##     ## ##    ##  ######
+
+  getLastColumn: -> @table.getColumnsCount() - 1
 
   isActiveColumn: (column) -> @activeCellPosition.column is column
 

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

  getRowHeight: -> @rowHeight

  setRowHeight: (@rowHeight) ->

    if @activeCellPosition.column - 1 >= 0
      @activeCellPosition.column--
    else
      @activeCellPosition.column = @getLastColumn()

      if @activeCellPosition.row - 1 >= 0
        @activeCellPosition.row--
      else
        @activeCellPosition.row = @getLastRow()

    @requestUpdate(true)
    @makeRowVisible(@activeCellPosition.row)
