padolsey/jQuery.fn.autoResize — pull request #55 by steel (2012-03-01 01:04:05+00:00)
Title: Firefox textarea height calculation fix

When FF clones a textarea, it applies its own border which screws up calculations when scrollTop is called. In FF, even though you set height to 0px, it's got its own border and calculated height ends up being about 1em. Copying over the border styles makes a better clone.