         panel1._setSize p1size
         race()
         resizer._setOffset p0offset if resizer
-
-  hidePanel:(panelIndex,callback = noop)=>
-    panel = @panels[panelIndex]
-    panel._lastSize = panel._getSize()
-    @resizePanel 0,panelIndex,()=>
-      callback.call @,(panel : panel, index : panelIndex )
-
-  showPanel:(panelIndex,callback = noop)=>
-    panel = @panels[panelIndex]
-    newSize = panel._lastSize or @getOptions().sizes[panelIndex] or 200
-    panel._lastSize = null
-    @resizePanel newSize,panelIndex,()->
-      callback.call @,(panel : panel, index : panelIndex )
-
-  getPanelIndex:(panel)->
-
-    for p,i in @panels
-      if p.getId() is panel.getId()
-        return i
 
   splitPanel:(index, options)->
 

      else
        size

  _resetSizeValues:->

    # THIS RESIZES ALL PANELS BY THEIR CURRENT PERCENTAGES <- BAD

    # for i in [0...@sizes.length]
    #   splitSize = @_getSize()
    #   panelSize = @panels[i].size = @panels[i]._getSize()

    #   newSizeInPercentage = Math.round panelSize * 100 / splitSize

    #   if newSizeInPercentage isnt Infinity and isNaN(newSizeInPercentage) isnt true
    #     @getOptions().sizes[i] = "#{newSizeInPercentage}%"
    #   else
    #     @getOptions().sizes[i] = null

    # total = 0
    # total += parseInt(size,10) for size in @getOptions().sizes
    # lastPanelSize = parseInt(@getOptions().sizes[@getOptions().sizes.length-1])
    # if total < 100
    #   lastPanelSize += 100 - total
    #   @getOptions().sizes[@getOptions().sizes.length-1] = "#{lastPanelSize}%"
    # else
    #   lastPanelSize -= total - 100
    #   @getOptions().sizes[@getOptions().sizes.length-1] = "#{lastPanelSize}%"


    # ONLY RESIZE PANELS WHICH ARENT GIVEN ANY SIZE INFO WHEN INSTANTIATED
    panelsToBeResized = []
    for size,index in @options.sizes
      panelsToBeResized.push index if size is null

    if panelsToBeResized.length is 0
      panelsToBeResized = (index for size,index in @options.sizes)

    for size,index in @sizes
      if index in panelsToBeResized
        @options.sizes[index] = size

    # for size,index in @getOptions().sizes
    #   newSizeInPercentage = Math.round @panels[index]._getSize() * 100 / @_getSize()
    #   @getOptions().sizes[index] = if newSizeInPercentage isnt Infinity and isNaN(newSizeInPercentage) isnt true
    #     "#{newSizeInPercentage}%"
    #   else null


  _resizePanels:->

    @_sanitizeSizes()

    totalOccupied = 0
    splitSize     = @_getSize()

    # newSizes = for size,i in (if @sizes.length > 0 then @sizes else o.sizes)
    newSizes = for size,i in o.sizes
      if size is null
        nullCount++
        null
