       if yorient == 'top'
         top += height
       else
-        top -= widgetHeight + parseInt(this.$widget.css('padding-top'), 10)
+        top -= widgetHeight + parseInt(@.$widget.css('padding-top'), 10)
 
       @.$widget.css {
         top : top


    update: (ignoreWidget) ->
      @updateElement()
      this.updateWidget() if !ignoreWidget

    updateElement: () ->
      @.$element.val(@getText()).change()

      options = typeof option == 'object' && option

      if !data
        data = new Textdropdown(@, $.extend({}, $.fn.textdropdown.defaults, options, $(@).data()))
        $this.data('textdropdown', data)

      if typeof option == 'string'
