   _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

    $parent = @$().parent()
    if type is "vertical" then $parent.width() else $parent.height()

  _getLegitPanelSize:(size,index)->
    size =
      if @getOptions().minimums[index] > size
        @getOptions().minimums[index]
      else if @getOptions().maximums[index] < size
        @getOptions().maximums[index]
      else
        size

  _resizePanels:->



  constructor:(options = {},data)->

    options.type      or= "vertical"        # "vertical" or "horizontal"
    options.resizable  ?= yes               # yes or no
    options.sizes     or= ['50%','50%']     # an Array of Strings such as ["50%","50%"] or ["500px","150px",null] and null for the available rest area
    options.minimums  or= [0,0]             # an Array of Strings
    options.maximums  or= ['100%','100%']   # an Array of Strings
    options.views     or= null              # an Array of KDViews
    options.fixed     or= []                # an Array of Booleans
    options.duration  or= 200               # a Number in miliseconds
    options.separator or= null              # a KDView instance or null for default separator
    options.colored    ?= no
    options.animated   ?= yes           # a Boolean
    options.type        = options.type.toLowerCase()
    options.cssClass    = KD.utils.curry "kdsplitview kdsplitview-#{options.type}", options.cssClass

    super options,data

    @panels       = []
    @panelsBounds = []
    @resizers     = []
    @sizes        = []
    @minimums     = []
    @maximums     = []
    @size         = 0

  viewAppended:->

