Dynamically loaded, css-ed text and maxscroll?

Hey guys,

I’m developing a small site which dynamically loads .txt files into a main textbox which has a completely working custom scrollbar and buttons. The scrollbar would resize vertically based on the textbox.maxscroll value for the loaded text. The problem is that since I have adjusted my .txt files to work with CSS formatting, the scrollbar resize doesn’t work. The up/down buttons and scrollbar scrolling are fine but resizing doesn’t. I put a trace in the code for the maxscroll value but for the CSS formatted .txt files is always 1 no matter how much content is in the file. Anyone? I’m totally out of possible reasons. Any help greatfully appreciated.

Cheers, Mike