       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()


    super options,data

    @panels       = []
    @panelsBounds = []
    @resizers     = []


    no

  _panelIsBeingDestroyed:(panel)->

    index         = @getPanelIndex panel
    o             = @getOptions()
    @panels       = @panels.slice(0,index).concat(@panels.slice(index+1))
    @sizes        = @sizes.slice(0,index).concat(@sizes.slice(index+1))
    @panelsBounds = @panelsBounds.slice(0,index).concat(@panelsBounds.slice(index+1))

    o.minimums.splice index, 1
    o.maximums.splice index, 1
    o.views.splice    index, 1 if o.views[index]?

  # CREATE RESIZERS

  _createResizers:->

    @resizers = for i in [1...@sizes.length]
