Make pages adjust automatically

This commit is contained in:
Eliot Whalan 2016-06-24 16:50:51 +10:00
parent 725cd30069
commit 630ed5403d
No known key found for this signature in database
GPG Key ID: C0A42175139840D6
2 changed files with 3 additions and 2 deletions

View File

@ -484,7 +484,8 @@
var resizeTextarea = function(el) {
jQuery(el).css('height', 'auto').css('height', el.scrollHeight + offset);
};
jQuery(this).on('keyup input', function() { resizeTextarea(this); }).removeAttr('data-autoresize');
jQuery(this).on('keyup input', function() { resizeTextarea(this); });
resizeTextarea(this);
});
</script>

View File

@ -479,7 +479,7 @@
var resizeTextarea = function(el) {
jQuery(el).css('height', 'auto').css('height', el.scrollHeight + offset);
};
jQuery(this).on('keyup input', function() { resizeTextarea(this); }).removeAttr('data-autoresize');
jQuery(this).on('keyup input', function() { resizeTextarea(this); });
});
</script>