Setting tooltip gravity to 's' so that the tooltip shows above
authorkaldari <kaldari@gmail.com>
Tue, 11 Jun 2013 18:57:59 +0000 (11:57 -0700)
committerkaldari <kaldari@gmail.com>
Tue, 11 Jun 2013 19:06:23 +0000 (12:06 -0700)
Right now the tooltip gravity is defaulting to north which causes
the tooltip to be partially overlapped by the cursor. Setting it
to south makes it easier to read since it appears above the icon
and isn't obscured by the cursor.

Change-Id: I9aa43c9ff93fbded1b51bf34c084ec0f8cad28b7

resources/mediawiki/mediawiki.htmlform.js

index ac6f2a1..f93cac1 100644 (file)
                var $matrixTooltips = $( '.mw-htmlform-matrix .mw-htmlform-tooltip' );
                if ( $matrixTooltips.length ) {
                        mw.loader.using( 'jquery.tipsy', function () {
-                               $matrixTooltips.tipsy();
+                               $matrixTooltips.tipsy( { gravity: 's' } );
                        } );
                }
        } );