code: function() {
  					
                      // Prepare the clone:
                      clone.height(0).val($(this).val()).scrollTop(10000);
  					
                      // Find the height of text:
                      var scrollTop = Math.max(clone.scrollTop(), origHeight) + settings.extraSpace,
                          toChange = $(this).add(clone);
  						
                      // Don't do anything if scrollTip hasen't changed:
                      if (lastScrollTop === scrollTop) { return; }
                      lastScrollTop = scrollTop;
  					
                      // Check for limit:
                      if ( scrollTop >= settings.limit ) {
                          $(this).css('overflow-y','');
                          return;
                      }
                      // Fire off callback:
                      settings.onResize.call(this);
  					
                      // Either animate or directly apply height:
                      settings.animate && textarea.css('display') === 'block' ?
                          toChange.stop().animate({height:scrollTop}, settings.animateDuration, settings.animateCallback)
                          : toChange.height(scrollTop);
                  }
docs: Get rid of scrollbars and disable WebKit resizing: