Changeset 71 for trunk/style
- Timestamp:
- Feb 6, 2009, 4:55:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/style/global.js
r60 r71 10 10 el.display = 'none'; 11 11 } 12 13 function adjustRows(textarea) 14 { 15 if(document.all) 16 { 17 while(textarea.scrollHeight > textarea.clientHeight) 18 textarea.rows++; 19 textarea.scrollTop = 0; 20 } 21 else if(textarea.rows) 22 { 23 textarea.rows = 30; 24 /* 25 var lineBreaks = 50;//countLineBreaks(textarea.value); 26 var rows = parseInt(textarea.rows); 27 var wrap = textarea.getAttribute('wrap'); 28 if(lineBreaks > rows) 29 textarea.rows = ++rows; 30 else if(wrap.toLowerCase() == 'soft' || wrap.toLowerCase() == 'hard') 31 { 32 while(textarea.rows * textarea.cols <= textarea.value.length) 33 { 34 textarea.rows = 4; //++rows; 35 } 36 } 37 */ 38 } 39 }
Note:
See TracChangeset
for help on using the changeset viewer.