Page MenuHomePhabricator

The OOUI hack to prevent scrolling while dialog is open causes page contents to move horizontally by scrollbar's width in RTL when dialog opens
Closed, ResolvedPublic

Description

The OOUI hack to prevent scrolling while dialog is open causes page contents to move horizontally by scrollbar's width in RTL when dialog opens.

Caused by https://gerrit.wikimedia.org/r/#/c/196571/ which was a fix for T89612.

Event Timeline

To clarify: this only happens if your system if fully RTL, as most browsers don't take the outer window's directionality from the body/html. Even running Firefox in Hebrew on an English OS it is impossible to get the window scrollbar to flip.

Depends on the browser. Here's a screenshot of English IE 11 on English Windows 7 viewing https://tools.wmflabs.org/oojs-ui/oojs-ui/demos/#dialogs-mediawiki-vector-rtl:

pasted_file (936×1 px, 114 KB)

Esanders lowered the priority of this task from Medium to Low.Jun 8 2015, 2:18 PM
Esanders set Security to None.

To clarify: this only happens if your system if fully RTL, as most browsers don't take the outer window's directionality from the body/html. Even running Firefox in Hebrew on an English OS it is impossible to get the window scrollbar to flip.

This can be tested on Firefox without changing your entire OS language by setting 'layout.scrollbar.side' to '1' in about:config.

Change 966299 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[oojs/ui@master] WindowManager: Fix faking scrollbar width on the wrong side in RTL

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

Change 966299 merged by jenkins-bot:

[oojs/ui@master] WindowManager: Fix faking scrollbar width on the wrong side in RTL

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

Test wiki on Patch demo by Matma Rex using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/50dc373669/w/

Browser support seems good, but less than ideal (https://caniuse.com/mdn-css_properties_scrollbar-gutter)

~92% of Chrome and Firefox users. There's no Safari support but macOS uses overlay scrollbars by default. We don't have any stats on how many mac users have fixed scrollbars enabled, but it's probably quite low.

That said the failure mode here is not that drastic, just a little bit of movement when modal dialogs open and close.

Change 980958 had a related patch set uploaded (by Anne Tomasevich; author: Anne Tomasevich):

[mediawiki/core@master] Update OOUI to v0.48.3

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

Change 980958 merged by jenkins-bot:

[mediawiki/core@master] Update OOUI to v0.48.3

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