Better language change tooltip positioning in 'interlanguage' mode
Bug: T161203 Change-Id: I1c5afd64295033e2fbb0aa07601af50da8e06266
This commit is contained in:
@@ -197,8 +197,6 @@
|
||||
|
||||
ulsPopup.toggle( true );
|
||||
ulsPopup.toggleClipping( false );
|
||||
// Position popup
|
||||
ulsPopup.setFloatableContainer( $ulsTrigger );
|
||||
|
||||
// if the mouse is over the tooltip, do not hide
|
||||
$( '.uls-tipsy' ).on( 'mouseover', function () {
|
||||
@@ -239,6 +237,9 @@
|
||||
padded: true,
|
||||
width: 300,
|
||||
classes: [ 'uls-tipsy' ],
|
||||
// Automatically positioned relative to the trigger
|
||||
$floatableContainer: $ulsTrigger,
|
||||
position: ( ulsPosition === 'interlanguage' ) ? 'after' : 'below',
|
||||
$content: ( function () {
|
||||
var link = $( '<a>' ).text( previousAutonym )
|
||||
.attr( {
|
||||
|
||||
Reference in New Issue
Block a user