AARoads Forum

Please login or register.

Login with username, password and session length

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

vdeane

  • *
  • *
  • Online Online

  • Posts: 13239
  • Age: 31
  • Location: NY's Capital District
  • Last Login: Today at 01:21:00 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: 12042
  • Age: 23
  • Location: MA/NH border
  • Last Login: Today at 12:26:02 PM
    • 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 several sub-national routes

Flickr: Click the globe under my avatar

webny99

  • *
  • Offline Offline

  • Posts: 10688
  • Left lane is for passing, not camping!

  • Age: 23
  • Location: Monroe County, NY
  • Last Login: Today at 12:49:00 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
On April 25, 2022, I became the 20th user in forum history to Like the Forum Way, Way Too Much. And then I found that there's another way...
__ _______ ___ __ _______ _____

Scott5114

  • *
  • *
  • Offline Offline

  • Posts: 15628
  • Nit picker of unprecedented pedantry

  • Age: 32
  • Location: Norman, OK
  • Last Login: Today at 05:42:16 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

vdeane

  • *
  • *
  • Online Online

  • Posts: 13239
  • Age: 31
  • Location: NY's Capital District
  • Last Login: Today at 01:21:00 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: 15628
  • Nit picker of unprecedented pedantry

  • Age: 32
  • Location: Norman, OK
  • Last Login: Today at 05:42:16 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

1

  • *
  • Offline Offline

  • Posts: 12042
  • Age: 23
  • Location: MA/NH border
  • Last Login: Today at 12:26:02 PM
    • 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 several sub-national routes

Flickr: Click the globe under my avatar

JayhawkCO

  • *
  • Online Online

  • Posts: 5378
  • Age: 40
  • Location: Aurora, CO
  • Last Login: Today at 01:15:24 PM
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: 14460
  • Age: 49
  • Location: Fairfax County, Virginia
  • Last Login: Today at 12:58:13 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: 11031
  • Age: 48
  • Location: HSV
  • Last Login: Today at 12:48:58 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.