   _createPanels:->
 
     panelCount = @getOptions().sizes.length
-    @panels = (@_createPanel i for i in [0...panelCount])
+    @panels    = [@_createPanel(0), @_createPanel(1)]
 
   _createPanel:(index)->
 
-    {type, fixed, minimums, maximums} = @getOptions()
+    log @sizes[index],"////////"
+    {type, fixed} = @getOptions()
     panel = new KDSplitViewPanel
       cssClass : "kdsplitview-panel panel-#{index}"
       index    : index
       type     : type
-      size     : @_sanitizeSize @sizes[index]
-      fixed    : yes                            if fixed[index]
-      minimum  : @_sanitizeSize minimums[index] if minimums
-      maximum  : @_sanitizeSize maximums[index] if maximums
+      size     : @sizes[index]
+      fixed    : !!fixed[index]
+      minimum  : @minimums[index]
+      maximum  : @maximums[index]
 
     panel.on "KDObjectWillBeDestroyed", => @_panelIsBeingDestroyed panel
     @emit "SplitPanelCreated", panel

    @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



  # HELPERS
  _sanitizeSizes:->

    @_setMinsAndMaxs()
    {sizes} = @getOptions()
    ss      = @_getSize()
    s       = []
    s[0]    = @_getLegitPanelSize @_sanitizeSize(sizes[0]), 0
    s[1]    = @_getLegitPanelSize @_sanitizeSize(sizes[1]), 1
    st      = s[0] + s[1]

    if st > ss
      s[1] = ss - s[0]
    else if st < ss
      if sizes[0] and (not sizes[1] or sizes[1] is 'auto')
        s[1] = ss - s[0]
      else if sizes[1] and (not sizes[0] or sizes[0] is 'auto')
        s[0] = ss - s[1]


    @size  = ss
    log s, sizes, '-----------'
    @sizes = s


  _sanitizeSize: (size) ->

    size = if "number" is typeof size then size
    else if /px$/.test size    then parseInt size, 10
    else if /%$/.test size
    then @_getSize() / 100 * parseInt size, 10
    else @_getSize() / 2
    size

  _setMinsAndMaxs:->

    {minimums, maximums} = @getOptions()

    @minimums[0] = @_sanitizeSize minimums[0]
    @minimums[1] = @_sanitizeSize minimums[1]
    @maximums[0] = @_sanitizeSize maximums[0]
    @maximums[1] = @_sanitizeSize maximums[1]


  _getSize:->

    if @size then @size
    else if @getOptions().type is "vertical"
    then @getWidth()
    else @getHeight()


  _setSize:(size)->
    if @getOptions().type is "vertical" then @setWidth size else @setHeight size
