Fix callout positioning logic
Follow-up to 1d395d4966. We were
measuring the wrong $window, which happened to work right most
of the time but wasn't correct.
Change-Id: I50f91623b304f43be58ebac844d507757f56db45
This commit is contained in:
@@ -351,7 +351,7 @@
|
||||
|
||||
caretRadius = parseInt( $caretBefore.css( 'border-top-width' ), 10 );
|
||||
|
||||
if ( ulsTriggerOffset.left > ( this.$window.width() - caretRadius ) / 2 ) {
|
||||
if ( ulsTriggerOffset.left > $( window ).width() / 2 ) {
|
||||
this.left = ulsTriggerOffset.left - this.$window.width() - caretRadius;
|
||||
$caretWrapper.addClass( 'caret-right' );
|
||||
caretPosition = $caretBefore.position();
|
||||
|
||||
Reference in New Issue
Block a user