Last modified: 2013-10-23 18:17:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T36175, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34175 - the jquery.tipsy CSS is wrong for RTL
the jquery.tipsy CSS is wrong for RTL
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.18.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-02 22:39 UTC by kipod
Modified: 2013-10-23 18:17 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description kipod 2012-02-02 22:39:38 UTC
Mediawiki overrides the default tipsy CSS, and the one used does not work 100% correctly for RTL.

the problem only appears when "gravity" is ne,nw,se or sw. the problem is that the small protrusion at the top of the tipsy box is at the wrong side for RTL.

unfortunately, there is some unrelated issue with RTL and "debug=true":
with "debug=true" a lot of stuff is displayed wrong for RTL, but at the same time, it fixes the tipsy issue.

REPRODUCTION:
open an rtl mediawiki page, and run the following code in the console:
    mw.loader.using('jquery.tipsy', function() {
    $(function() {
	function titleFunc(){return "this is a long enough text";}
	$('a', mw.util.$content).tipsy({html: true, title: titleFunc, gravity: 'ne'})
    });
    });

note that the little notch at the top of the tipsy opens at the left instead of the right.
Comment 1 Robin Pepermans (SPQRobin) 2012-02-03 01:02:36 UTC
About the debugging, that is a known issue, https://www.mediawiki.org/wiki/Directionality_support#ResourceLoader links to bug 27025 about this.

So if debug mode solves it, adding @noflip to the relevant styles might fix the bug.

Also, I think it might be related to bug 29002.
Comment 2 Robin Pepermans (SPQRobin) 2012-02-03 02:25:45 UTC
Fixed in r110640.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links