Do not use tipsy class with new popup
The tipsy class has CSS styling from the tipsy module which do not work with the OO.ui.PopupWidget. If the tipsy module gets loaded for some other reason, the display will be slightly broken. Fixed by renaming the class. Bug: T96648 Change-Id: Ib0e11098506560f4de1c6402b8c980ad3ebc3879
This commit is contained in:
@@ -213,14 +213,14 @@
|
||||
ulsPopup.toggle( true );
|
||||
ulsPopup.toggleClipping( false );
|
||||
// if the mouse is over the tooltip, do not hide
|
||||
$( '.tipsy' ).on( 'mouseover', function () {
|
||||
$( '.uls-tipsy' ).on( 'mouseover', function () {
|
||||
window.clearTimeout( tipsyTimer );
|
||||
} ).on( 'mouseout', function () {
|
||||
tipsyTimer = window.setTimeout( hideTipsy, timeout );
|
||||
} );
|
||||
|
||||
// hide the tooltip when clicked on it
|
||||
$( '.tipsy' ).on( 'click', hideTipsy );
|
||||
$( '.uls-tipsy' ).on( 'click', hideTipsy );
|
||||
|
||||
// Event handler for links in the tooltip.
|
||||
// It looks like the tipsy is always created from scratch so that
|
||||
@@ -251,7 +251,7 @@
|
||||
padded: true,
|
||||
width: 300,
|
||||
align: 'forwards',
|
||||
classes: [ 'tipsy' ],
|
||||
classes: [ 'uls-tipsy' ],
|
||||
$content: ( function () {
|
||||
var link = $( '<a>' ).text( previousAutonym )
|
||||
.attr( {
|
||||
|
||||
Reference in New Issue
Block a user