I have a script that scrolls news items using two divs, one on top of the other, when one leaves the top of the container div it is moved to the bottom of the other. since the scrolling divs height is determined by the content I use prototype getHeight() to determine the height of the div. My site dynamically re-sizes when the browser window is resized, this includes the font size... you can see this at http://fibmasters.com/ my problem is that after resize the height of the divs changes because the font size of the content changes however subsequent getHeight returns the "old" value for the div height, creating a gap or overlap in the scrolling items. Does anyone know why this is happening and what a solution to the problem would be?
__________________
Sleeping Troll, EMUSE, Mind Expansion...Truly serendipity!
|