Alex A. Naanou 8f83ea587c more refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2023-09-27 15:41:29 +03:00

22 lines
627 B
JavaScript
Executable File

/**********************************************************************
*
*
*
**********************************************************************/
HTMLTextAreaElement.prototype.updateSize = function(){
this.style.height = ''
this.style.height = this.scrollHeight + 'px'
return this }
HTMLTextAreaElement.prototype.autoUpdateSize = function(){
var that = this
this.addEventListener('input',
function(evt){
that.updateSize() })
return this }
/**********************************************************************
* vim:set ts=4 sw=4 : */