Alex A. Naanou 5c69b03ad6 refactoring (not done yet...)
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2023-09-27 15:05:34 +03:00

21 lines
625 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 : */