rotatingtweets element height problem (again)
-
Martin,
I have a problem here. Just noticed now that the rotatingtweets box has a ‘height: 347px’ attached to it and is causing the tweets box to be longer than the columns either side. I have not changed the plugin since our last discussion other than to update it to 1.9.1 today, which I did after noticing the problem.
The full CSS is
element.style { position: relative; overflow: hidden; height: 347px;}After the last discussion, tweet_count was 5 and carousel_count was set at 3. The outer twitter-box element was the same height as the columns either side.
Today it’s about 5cm longer. If I change the count to 2 then twitter-box reduces to the same height as the other columns because rotatingtweets reduces from 347px to 232px. So without me changing anything with the plugin, twitter-box is 5cm longer today than 5 days ago.
Do you dynamically alter the height of the box in the code depending on the tweet content? We’re only displaying retweets. One thought is that some RTs cover 5 lines, some are 4, others 3. So if all are 5 lines, and you are dynamically altering the rotatingtweets box size by interpreting each RT’s ‘height’, then that box would be bigger than if all the RTs are just 2 lines.
Could this be the issue?
I need twitter-box to stay at the same height all the time so it always matches the columns either side. I can do this via a fixed height CSS command on rotatingtweets but would like to understand if this is the problem, and would there be any knock-on effects of doing so?
PS. I have changed carousel_count back to 2 to match the column heights.
PPS. The http://dev.henleyherald.com/ site is still set at a 3 count if you want to see the problem.
The page I need help with: [log in to see the link]
The topic ‘rotatingtweets element height problem (again)’ is closed to new replies.