* refactor autoResize textarea.

This commit is contained in:
Catouse
2018-09-13 10:56:08 +08:00
parent e7d358eeed
commit e2ee522bf1
6 changed files with 19 additions and 71 deletions
-9
View File
@@ -150,15 +150,6 @@ $(document).on('mousedown', 'select', function()
}
})
if(navigator.userAgent.indexOf("Firefox") < 0)
{
$(document).on('input keyup paste change', 'textarea.autosize', function()
{
this.style.height = 'auto';
this.style.height = (this.scrollHeight + 2) + "px";
});
}
$(function()
{
/* Adjust width for ie chosen width. */