     @valid = yes
     @inputCallback = null
     @previousHeight = null
+    @previousWidth = null
     @setName options.name
     @setLabel()
     @setCallback()

    if o.autogrow
      @once "focus", =>
        @initialHeight = @$().height()  unless @initialHeight

  setDomElement:(cssClass = "")->
    name = "name='#{@options.name}'"

    # element to get calculated height
    @_clone = $ '<div/>', { class: 'invisible' }

    { type } = @getOptions()
    isVertical = type.toLowerCase() is 'textarea'


    @on 'focus', =>
      @_clone.appendTo 'body'
      @_clone.css
        height        : if isVertical then 'auto' else $input.css 'height'
        zIndex        : 100000
        width         : if isVertical then $input.css 'width' else 'auto'
        boxSizing     : $input.css 'box-sizing'
        borderTop     : $input.css 'border-top'
        borderRight   : $input.css 'border-right'
