There is a new issue with version 1.25wmf14 (rMW6d956f68a5b5), in which jquery dialogs with auto size in RTL languages are "broken", e.g instead of auto width it takes 50% of the screen very ugly and annoying.
How to test:
- go to Hebrew/Arabic wikipedia
- get to wikitext edit
- press on the "{{ }}" icon on the toolbar (this opens a dialog with auto width) - ugly window should appear
another way to get it (just for debug)
- Get to https://en.wikipedia.org/w/index.php?title=jqueryUI&action=edit&uselang=ar
- open cite on the toolbar
- select some template
- change its css width from some value to auto (this isn't assumed to be regular/valid user flow just to convince this isn't a issue with specific script in he/ar wiki)
Possible solution:
tell the resource loader @noflip on .ui-dialog { left: 0 } rule in lib/jquery.ui/themes/smoothness/jquery.ui.dialog.css
I'm not sure:
- if it is OK to do it for imported external library or there is a better option so we shouldn't have to copy it in next jquery ui version
- Why this happens only in the last mw version (didn't see in the patch logs something relevant to jquery ui) and why it doesn't happen with the regular dialgos with Wikieditor (I guess this use explicit width, but not sure)