mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-29 05:07:36 +00:00
Change the tipsy gravity for the stripe buttons
- this avoids an issue where the arrow wouldn't point to what we want when near the edge of the screen - this avoids an RTL issue where the bubble would go outside of the screen Bug: 64258 Change-Id: I1cc9683af2743b093a45b19d7142fe7e5e66423f Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/485
This commit is contained in:
parent
6d301dcd12
commit
f09abebbf4
|
@ -68,7 +68,7 @@
|
|||
.prop( 'title', popupText )
|
||||
// elements are right-floated so we use prepend instead of append to keep the order
|
||||
.prependTo( this.$buttonContainer )
|
||||
.tipsy( { gravity: 's' } );
|
||||
.tipsy( { gravity: $( document.body ).hasClass( 'rtl' ) ? 'sw' : 'se' } );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue