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.toggle( true );
|
||||||
ulsPopup.toggleClipping( false );
|
ulsPopup.toggleClipping( false );
|
||||||
// Position popup
|
|
||||||
ulsPopup.setFloatableContainer( $ulsTrigger );
|
|
||||||
|
|
||||||
// if the mouse is over the tooltip, do not hide
|
// if the mouse is over the tooltip, do not hide
|
||||||
$( '.uls-tipsy' ).on( 'mouseover', function () {
|
$( '.uls-tipsy' ).on( 'mouseover', function () {
|
||||||
@@ -239,6 +237,9 @@
|
|||||||
padded: true,
|
padded: true,
|
||||||
width: 300,
|
width: 300,
|
||||||
classes: [ 'uls-tipsy' ],
|
classes: [ 'uls-tipsy' ],
|
||||||
|
// Automatically positioned relative to the trigger
|
||||||
|
$floatableContainer: $ulsTrigger,
|
||||||
|
position: ( ulsPosition === 'interlanguage' ) ? 'after' : 'below',
|
||||||
$content: ( function () {
|
$content: ( function () {
|
||||||
var link = $( '<a>' ).text( previousAutonym )
|
var link = $( '<a>' ).text( previousAutonym )
|
||||||
.attr( {
|
.attr( {
|
||||||
|
|||||||
Reference in New Issue
Block a user