Articles with double scroll bars


#1

There seems to be something in BoingBoing’s code these days that causes articles to come up with a weird doubled scroll bar at the right, where it can be unpredictable which one you’re supposed to use to scroll in the article.


What's thist "adskin" thing that's showing up in some article views here?
#2

Yep, I’ve noticed this too.


#3

haven’t noticed this, not yet anyway. usually if you post in the “Bugs with the new BBS system” thread, Sam and Codinghorror will reply pretty promptly. They’re gonna ask your OS and browser right away.


#4

I watch all the meta topic, @Dan_Tobias are you talking about bbs.boingboing.new or the main site?

Care to add a screen shot?


#5

It’s the main BoingBoing site, in just about any recent article.


#6

aha @beschizza @deanputney you may want to have a look at this.


#7

Fixing it has been waiting for the redesign. Which has taken rather longer than expected.


#8

What broke it in the first place? Is it something to do with the frickin’ ads? Because just about everything that’s fracked up in websites these days tends to be related to the fraggin’ ads.


#9

I love internet ads. I click them again, and again.


#10

Someone in another thread thought it was a div, id “adskin” that we use for background ads. But I’m pretty sure it’s actually because we use javascript to have the content column match the height of the right-floated sidebar, and that’s just a janky way to do it that will sometimes cock up.

WE’LL DEAL WITH IT. And the dealing will likely involve overflow:auto. EVENTUALLY!


#11

Yeah, I’m pretty sure it’s that min-height rule on #container. If you toggle it you’ll see double scrollbars. For anyone who’s seeing this, the calculated height isn’t quite enough. BoingBoing is calling this on document ready, when 3rd party ads may or may not have loaded fully.

//The sidebar, being absolutely positioned, may not be contained by short posts. This makes sure it is.	
if(document.getElementById("sidebar") != null){
	var sh = document.getElementById("sidebar").offsetHeight;
	var ch = document.getElementById("container").offsetHeight;
	if (ch < sh ) { document.getElementById("container").style.minHeight = sh+500 + "px";}
}

So probably using a different clearing method, waiting for an all ads loaded callback to resize, or just using a css grid would do the trick.


#12

Currently the double scroll bars appear if I whitelist this site with my ad blocker, but go away if I turn the ad blocking back on. So you’re getting me to ad-block your site even though the ads themselves aren’t too annoying.


#13

This topic was automatically closed after 1112 days. New replies are no longer allowed.