   _windowDidResize:(event)=>
 
     @_setSize @_getParentSize()
-    @_resetSizeValues()
-
     @_resizePanels()
     @_repositionPanels()
     @_setPanelPositions()


    return newPanel

  _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]?

  removePanel:(index)->

    l = @panels.length

    @sizes = for size in newSizes
      if size is null
        nullSize = (splitSize - totalOccupied) / nullCount
        Math.round nullSize
      else
        Math.round size

    return @sizes

  _sanitizeSize:(size)->
    if "number" is typeof size or /px$/.test(size)
      parseInt size, 10
    else if /%$/.test size
      splitSize = @_getSize()
      splitSize / 100 * parseInt size, 10

  _setMinsAndMaxs:->
    @getOptions().minimums ?= []
