Page MenuHomePhabricator

Universal Language Selector sometimes overflows over the top of the page, hiding the top of it
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Assigned To
Authored By
Novem_Linguae
Aug 2 2026, 5:00 PM
Referenced Files
F104571726: image.png
Sep 24 2026, 7:14 AM
F104571695: image.png
Sep 24 2026, 7:14 AM
F104566191: image.png
Sep 24 2026, 6:28 AM
F103033312: Screenshot 2026-09-15 at 14.38.57.png
Sep 15 2026, 12:40 PM
F101071450: Screenshot 2026-08-31 at 17.28.09.png
Aug 31 2026, 3:30 PM
F101071448: Screenshot 2026-08-31 at 17.28.00.png
Aug 31 2026, 3:30 PM
F96904051: image.png
Aug 2 2026, 5:00 PM
F96903998: image.png
Aug 2 2026, 5:00 PM

Description

Steps to replicate the issue (include links if applicable):

What happens?:

  • ULS opens above the language icon
  • ULS overflows off the top of the page

image.png (1,632×781 px, 125 KB)

What should have happened instead?:

  • ULS opens below the language icon
  • ULS does not overflow off the page

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Acceptance criteria

  • ULS dialog is fully in the current viewport (either as full-screen dialog, or positioned so that it fits)

QA Plan

Test 1

  • After deployment on test wiki, follow the steps to replicate the issue.
  • The dialog should appear at the below the language button and scrolling should allow you to view the entire language dialog

Test 2

  • Ensure that with normal zoom, and on Minerva, the dialog continues to be properly positioned relative to the language selector.
  • (eg. on simple wiki article, opens below the language icon; but on simple wiki main page, the language icon is at the bottom of the page, therefore show above or below the icon depends on user view screen)

Test 3

  • On Vector 2022, with normal zoom, the dialog should appear properly positioned relative to the language selector.

Event Timeline

Note: I'm only able to reproduce this Chromium. Firefox appears to render it below the button.

I'm able to reproduce in Firefox 152. I've edited the ticket to add the step "Zoom the browser in", which may be an extra step and the reason why you weren't able to reproduce.

Nikerabbit set the point value for this task to 2.
Nikerabbit moved this task from Backlog to Needs refinement on the LPL sprints board.

Probably related: T334763: Language selector box getting cut off in Vector 2022

And there's another ULS overflow issue:

  • Open a random page and scroll down until the scrolling header appears.
  • Select the language icon

Screenshot 2026-08-31 at 17.28.00.png (2,624×582 px, 304 KB)

  • Scroll up -> half of the ULS box is hidden

Screenshot 2026-08-31 at 17.28.09.png (2,628×510 px, 174 KB)

The fixed height of ULS cause the issue, should find a way to dynamic the height based on the viewport OR show the menu at the bottom always in this case

Screenshot 2026-09-15 at 14.38.57.png (2,582×1,856 px, 548 KB)

Change #1343473 had a related patch set uploaded (by Huei Tan; author: Huei Tan):

[mediawiki/extensions/UniversalLanguageSelector@master] ULS rewrite: Prevent floating menu from flipping at top in Minerva

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

Nikerabbit changed the task status from Open to In Progress.Sep 22 2026, 11:10 AM

Change #1343473 merged by jenkins-bot:

[mediawiki/extensions/UniversalLanguageSelector@master] ULS rewrite: keep the floating menu reachable when neither side fits

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

Look good on beta cluster:

image.png (2,341×1,227 px, 123 KB)

Could not test the main page as it does not have language button at all on this wiki.

On Vector 2022 a custom language button is there (as far as I can tell, this is not the standard language button added by the skin).

RTL looks okay:

image.png (609×774 px, 75 KB)

But LTR does not:

image.png (2,056×987 px, 224 KB)

On Vector 2022 a custom language button is there (as far as I can tell, this is not the standard language button added by the skin).

the wikitext for the button on beta cluster is

<!-- web team is using this to talk to communities, please message them before removing this. Note you must be using skinversion=2 for this to work -->{{LanguageButton}}

should we update them?

The issue is that the template uses class mw-interlanguage-selector which is a supported way to attach language selector to any element in the content, and this can be anywhere on the page. If the fix is not trivial, I can create another task for improving that (assuming the normal main page language button works as expected).

If the fix is not trivial, I can create another task for improving that (assuming the normal main page language button works as expected).

I assume yes, locally the button at the bottom works fine, we can also wait until next week deployment to test on test.wiki.

The custom button has some CSS styles that makes it full page width, hence the menu opens anchored to the right corner. Tested locally that it works as expected.