 
       # prevPanel = @panels[length - 2]
       # prevPanel._setSize prevPanel._getSize() + panel._getSize()
+  splitPanel:(index, options = {})->
 
     else
       # log "ONE IN THE MIDDLE"

      r.destroy()
      @resizers[index - 1].panel0 = @panels[index-1]
      @resizers[index - 1].panel1 = @panels[index]

      # prevPanel = @panels[index - 1]
      # prevPanel._setSize prevPanel._getSize() + panel._getSize()

    sizes  = [value, @_getSize() - value]
    offset = if index then sizes[1] else sizes[0]

    askedPanel._setSize sizes[0]
    affectedPanel._setSize sizes[1]

