web/data/cubicweb.htmlhelpers.js
branchstable
changeset 2377 fc1fea0e87c5
parent 2357 e65e352cfde3
child 2378 75af50d66b0a
equal deleted inserted replaced
2376:04ee75e2c63d 2377:fc1fea0e87c5
   228     jQuery(link).text(newText);
   228     jQuery(link).text(newText);
   229 }
   229 }
   230 
   230 
   231 
   231 
   232 function autogrow(area) {
   232 function autogrow(area) {
       
   233     log('scrollHeight ' + area.scrollHeight);
       
   234     log('clientHeight ' + area.clientHeight);
   233     if (area.scrollHeight > area.clientHeight && !window.opera) {
   235     if (area.scrollHeight > area.clientHeight && !window.opera) {
   234 	if (area.rows < 20) {
   236 	if (area.rows < 20) {
   235 	    area.rows += 2;
   237 	    area.rows += 2;
   236 	}
   238 	}
   237     }
   239     }