AARoads Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The AARoads Wiki is live! Come check it out!

Author Topic: Why do some images have vertical scroll bars?  (Read 1932 times)

vdeane

  • *
  • *
  • Offline Offline

  • Posts: 14306
  • Age: 32
  • Location: The 518
  • Last Login: December 09, 2023, 09:32:49 PM
    • New York State Roads
Why do some images have vertical scroll bars?
« on: June 20, 2022, 04:44:19 PM »

When browsing the forum, I've noticed that some images in posts have vertical scroll bars in them.  I can understand why a horizontal scroll bar might appear, if the image is too wide for the browser width, but what causes the vertical scroll bar?

Example: https://www.aaroads.com/forum/index.php?topic=17783.msg2748298#msg2748298
Logged
Please note: All comments here represent my own personal opinion and do not reflect the official position of NYSDOT or its affiliates.

1

  • *
  • Offline Offline

  • Posts: 14331
  • Age: 24
  • Location: MA/NH border
  • Last Login: Today at 08:46:32 AM
    • Flickr account
Re: Why do some images have vertical scroll bars?
« Reply #1 on: June 20, 2022, 04:48:34 PM »

That image has no vertical scroll bar on my screen.
Logged
Clinched

Traveled, plus US 13, 44, and 50, and several state routes

webny99

  • *
  • Offline Offline

  • Posts: 12861
  • Age: 24
  • Location: Monroe County, NY
  • Last Login: December 09, 2023, 08:21:29 PM
Re: Why do some images have vertical scroll bars?
« Reply #2 on: June 20, 2022, 05:03:30 PM »

It does have a vertical scroll bar for me, yet it's pointless because I can see the whole image without scrolling.
Logged

Scott5114

  • *
  • *
  • Offline Offline

  • Posts: 19245
  • Nit picker of unprecedented pedantry

  • Age: 33
  • Location: Norman, OK...?
  • Last Login: Today at 03:02:51 AM
    • Denexa 100% Plastic Playing Cards
Re: Why do some images have vertical scroll bars?
« Reply #3 on: June 20, 2022, 06:04:14 PM »

Since I know you run your own webpage, I'll give the technical explanation. My guess is that your browser defaults to overflow: scroll (or overflow: auto) for content too big to fit inside a block element, when overflow: visible is the standard.

I am seeing no scroll bars on Firefox 100.0 on Fedora Linux.
Logged
uncontrollable freak sardine salad chef

vdeane

  • *
  • *
  • Offline Offline

  • Posts: 14306
  • Age: 32
  • Location: The 518
  • Last Login: December 09, 2023, 09:32:49 PM
    • New York State Roads
Re: Why do some images have vertical scroll bars?
« Reply #4 on: June 20, 2022, 08:37:31 PM »

Since I know you run your own webpage, I'll give the technical explanation. My guess is that your browser defaults to overflow: scroll (or overflow: auto) for content too big to fit inside a block element, when overflow: visible is the standard.

I am seeing no scroll bars on Firefox 100.0 on Fedora Linux.
Interesting.  I see two main takeaways from this:
1. This is likely a difference in how Firefox and Chromium-based browsers* render this.
2. A lot of images on the forum are evidently posted by Time Lords, since they're bigger on the inside.

*In theory all Chromium-based browsers should behave similarly, but given how many glitches HBO Max had for me in Chrome that vanished when I switched to Vivaldi, there are clearly differences.
Logged
Please note: All comments here represent my own personal opinion and do not reflect the official position of NYSDOT or its affiliates.

Scott5114

  • *
  • *
  • Offline Offline

  • Posts: 19245
  • Nit picker of unprecedented pedantry

  • Age: 33
  • Location: Norman, OK...?
  • Last Login: Today at 03:02:51 AM
    • Denexa 100% Plastic Playing Cards
Re: Why do some images have vertical scroll bars?
« Reply #5 on: June 20, 2022, 08:46:28 PM »

Yeah, gotta love browser vendors who think they know better than the W3C standard...

I fear that Chromium is headed down the same road to becoming Internet Explorer 6 all over again. In those Bad Old Days you could follow the web standards to the letter and still have your page break for half of your users because they insisted on using a browser that didn't bother following standards (thus the need for things like Acid2).
Logged
uncontrollable freak sardine salad chef

1

  • *
  • Offline Offline

  • Posts: 14331
  • Age: 24
  • Location: MA/NH border
  • Last Login: Today at 08:46:32 AM
    • Flickr account
Re: Why do some images have vertical scroll bars?
« Reply #6 on: June 21, 2022, 02:36:28 AM »

2. A lot of images on the forum are evidently posted by Time Lords, since they're bigger on the inside.

This isn't a problem for me. If someone posts a 4000×3000 photo, it will be 800×600 until I click on it, which means it doesn't unnecessarily take up space until I click on it (or if it's tall but not wide, since the forum only checks overwidth photos). The one problem is that clicking for full size also opens a link if it is one (usually Flickr on this forum), with no way around it.
Logged
Clinched

Traveled, plus US 13, 44, and 50, and several state routes

JayhawkCO

  • *
  • Offline Offline

  • Posts: 8461
  • Age: 41
  • Location: Aurora, CO
  • Last Login: Today at 02:23:23 AM
Re: Why do some images have vertical scroll bars?
« Reply #7 on: June 21, 2022, 08:26:34 AM »

Just another data point: on both my phone and laptop, Chrome does not at vertical scrolling bars.

1995hoo

  • *
  • Offline Offline

  • Posts: 16009
  • Age: 50
  • Location: Fairfax County, Virginia
  • Last Login: December 09, 2023, 11:19:30 PM
Re: Why do some images have vertical scroll bars?
« Reply #8 on: June 21, 2022, 08:30:36 AM »

FWIW, on my PC (running Firefox on dual 21-inch monitors) the image vdeane linked has no scroll bars when viewed in the thread. On my iPad, it has a horizontal scroll bar but no vertical scroll bar.
Logged
"You know, you never have a guaranteed spot until you have a spot guaranteed."
—Olaf Kolzig, as quoted in the Washington Times on March 28, 2003,
commenting on the Capitals clinching a playoff spot.

"That sounded stupid, didn't it?"
—Kolzig, to the same reporter a few seconds later.

formulanone

  • *
  • Offline Offline

  • Posts: 12692
  • Age: 49
  • Location: HSV
  • Last Login: December 09, 2023, 10:46:49 PM
Re: Why do some images have vertical scroll bars?
« Reply #9 on: June 21, 2022, 06:51:55 PM »

my evil plan is working
Logged

 


Opinions expressed here on belong solely to the poster and do not represent or reflect the opinions or beliefs of AARoads, its creators and/or associates.