Simplify undo tooltip positioning
OOUI is smart enough to handle this automatically: https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui.PopupWidget-cfg-position https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui.PopupWidget-cfg-autoFlip Change-Id: Ib8e4ea0e900b3ea0904b34d82c874227462e342e
This commit is contained in:
committed by
jenkins-bot
parent
97dffe3a9b
commit
929e707c49
@@ -160,15 +160,7 @@
|
||||
}
|
||||
|
||||
if ( ulsPosition === 'interlanguage' ) {
|
||||
if ( $ulsTrigger.offset().left > $( window ).width() / 2 ) {
|
||||
ulsPopupPosition = 'before';
|
||||
} else {
|
||||
ulsPopupPosition = 'after';
|
||||
}
|
||||
// Reverse for RTL
|
||||
if ( $( document.documentElement ).prop( 'dir' ) === 'rtl' ) {
|
||||
ulsPopupPosition = ( ulsPopupPosition === 'after' ) ? 'before' : 'after';
|
||||
}
|
||||
ulsPopupPosition = 'after';
|
||||
} else {
|
||||
ulsPopupPosition = 'below';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user