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.
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.
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Update OOUI to v0.48.3 | mediawiki/core | master | +1 K -1 K | |
WindowManager: Fix faking scrollbar width on the wrong side in RTL | oojs/ui | master | +13 -14 |
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:
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
Test wiki created on Patch demo by Matma Rex using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/50dc373669/w
Also created an OOUI Demos page:
https://patchdemo.wmflabs.org/wikis/50dc373669/w/build/ooui/demos
Change 966299 merged by jenkins-bot:
[oojs/ui@master] WindowManager: Fix faking scrollbar width on the wrong side in RTL
Test wiki on Patch demo by Matma Rex using patch(es) linked to this task was deleted:
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