   constructor:(options = {}, data)->
     
     options.resizeTabHandles  ?= no
+    options.maxHandleWidth    ?= 128
+    options.minHandleWidth    ?= 30
     @handles                   = []
     @panes                     = []
     @selectedIndex             = []


    visibleHandles   = []
    visibleTotalSize = 0
    containerSize    = @tabHandleContainer.getWidth()

    for handle in @handles
      unless handle.isHidden()
        visibleHandles.push handle
        visibleTotalSize += handle.getOptimalWidth()

    if containerSize < visibleTotalSize
      for handle in visibleHandles
        handle.$().css width: containerSize / visibleHandles.length - 10
    else 
      for handle in visibleHandles
        handle.$().css width: handle.getOptimalWidth()

    @resizeTimer = @utils.wait 300, =>
      @tabHandleContainer.$().removeClass "resize-in-action"

  _windowDidResize:(event)=> @resizeTabHandles event

    handle = @getHandleByIndex index
    handle.getDomElement().addClass "hide-close-icon"

  resizeTabHandles: KD.utils.throttle ->
    return if not @getOptions().resizeTabHandles or @_tabHandleContainerHidden

    @tabHandleContainer.$().addClass "resize-in-action"
