     height = this.measure().height
     height = Math.max @min, height
     height = Math.min height, @max if @max
-    @el().css "height", height+    @el().css "height", height

  measure: =>  
    shadow = @shadow()
    shadow.val "#{@el().val()}..."
    {
      width: shadow.get(0).scrollWidth
      height: shadow.get(0).scrollHeight
    }
  
  destroy: =>
    document.body.removeChild @_shadow

  capitalize: (name) ->
    while (indice = name.indexOf "-") > -1
      name = name.replace "-", ""
      suffixe = name.slice indice
      suffixe = suffixe.replace suffixe[0], suffixe[0].toUpperCase()
      name = name.replace name.slice(indice), suffixe      
    name
