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:
1 parent
b7e5776b41
commit
1777dc329b
1 file changed
+1
-1
@@ -351,7 +351,7 @@
|
|||||||
|
|
||||||
caretRadius = parseInt( $caretBefore.css( 'border-top-width' ), 10 );
|
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;
|
this.left = ulsTriggerOffset.left - this.$window.width() - caretRadius;
|
||||||
$caretWrapper.addClass( 'caret-right' );
|
$caretWrapper.addClass( 'caret-right' );
|
||||||
caretPosition = $caretBefore.position();
|
caretPosition = $caretBefore.position();
|
||||||
|
|||||||
Reference in new issue
Block a user