https://bugzilla.wikimedia.org/show_bug.cgi?id=34175

       Web browser: ---
             Bug #: 34175
           Summary: the jquery.tipsy CSS is wrong for RTL
           Product: MediaWiki
           Version: 1.18.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Javascript
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to