Page MenuHomePhabricator

Scrollbars are shown in language selector even when they aren't needed
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce

What happens?:
Scrollbars are present even though they aren't needed

image.png (186×187 px, 5 KB)

What should have happened instead?:
Scrollbars should only be added when they are needed.

QA Steps

When the language list isn't scrollable

  1. Using Windows 11 with Chrome 98, turn off javascript and visit https://en.wikipedia.beta.wmflabs.org/wiki/Language_test
  2. Click the language button and ensure that a scrollbar isn't visible

Event Timeline

Change 759998 had a related patch set uploaded (by BrandonXLF; author: BrandonXLF):

[mediawiki/skins/Vector@master] Only show scrollbars when needed in language menu

https://gerrit.wikimedia.org/r/759998

@ovasileva there is a patch from a volunteer for this one. Should we move into the sprint board?

@BrandonXLF what operating system and browser are you on? also to note, from the screenshot it looks like this is the non-JS version of the ULS

@BrandonXLF what operating system and browser are you on? also to note, from the screenshot it looks like this is the non-JS version of the ULS

I'm on Windows 11 with Chrome 98. I have JavaScript enabled so I'm not sure why I would be seeing the non JS version.

@BrandonXLF what operating system and browser are you on? also to note, from the screenshot it looks like this is the non-JS version of the ULS

I'm on Windows 11 with Chrome 98. I have JavaScript enabled so I'm not sure why I would be seeing the non JS version.

You will see the no-Js version with this setting unchecked:

Screen Shot 2022-02-08 at 9.19.46 AM.png (256×1 px, 41 KB)

https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-rendering

We don't really officially support this fallback preference so I am not surprised it doesn't look great.

Change 759998 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Only show scrollbars when needed in language menu

https://gerrit.wikimedia.org/r/759998

nray updated the task description. (Show Details)

I went ahead and +2'd the patch given that the change was small, and it had been lingering for some time. The changes on beta look good to me so I'm assuming this can be moved to sign off (of course please correct if it should be to another column!):

without-scroll.png (1×3 px, 2 MB)

cjming claimed this task.

lgtm - tested