Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 10-08-2010, 09:01 PM getHeight() problem
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
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!
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to getHeight() problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.48217 seconds with 12 queries