Merge "jquery.suggestions: Use document.documentElement.clientWidth"

This commit is contained in:
jenkins-bot 2019-06-10 13:44:50 +00:00 committed by Gerrit Code Review
commit 25ae1749cb

View file

@ -413,7 +413,8 @@
} else {
// Expand from right
newCSS.left = 'auto';
newCSS.right = $( 'body' ).width() - ( regionPosition.left + context.config.$region.outerWidth() );
newCSS.right = document.documentElement.clientWidth -
( regionPosition.left + context.config.$region.outerWidth() );
}
context.data.$container.css( newCSS );
@ -720,7 +721,7 @@
);
} )
)
.appendTo( $( 'body' ) );
.appendTo( document.body );
$( this )
// Stop browser autocomplete from interfering