Better language change tooltip positioning in 'interlanguage' mode

Bug: T161203
Change-Id: I1c5afd64295033e2fbb0aa07601af50da8e06266
This commit is contained in:
Bartosz Dziewoński
2017-04-04 17:42:49 +02:00
parent 1414157338
commit 66c66f6a28

View File

@@ -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( {