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:
Gilles Dubuc 2014-04-30 16:58:06 +02:00
parent 6d301dcd12
commit f09abebbf4

View file

@ -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' } );
};
/**