Hi,
I've hunted high and low and cannot find a solution to this.
I've played with
But that doesn't make it tall enough. I've looked at the '\n' split method but that still doesn't work, as it counts new line chars, what about lines that wrap?
I altered the above to be like this...
which works first time round (when height = null) but then it seems to double the height of the box with blank space.
I must be doing something stupid, so can someone tell me what it is please.
Cheers,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts
I've hunted high and low and cannot find a solution to this.
I've played with
Code:
var textarea = document.getElementById(ta);
textarea.style.height = (textarea.scrollHeight) + "px";
I altered the above to be like this...
Code:
var textarea = document.getElementById(ta);
textarea.style.height = (textarea.scrollHeight*2) + "px";
I must be doing something stupid, so can someone tell me what it is please.
Cheers,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts