Gerrit Patch Uploader has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/130425

Change subject: jquery.suggestions.js: Use body width instead of document width
......................................................................

jquery.suggestions.js: Use body width instead of document width

When there is a overflowing element in the content the width of
the document can be wider than the width of the body.

Bug: 54091
Bug: 64233
Bug: 64613
Change-Id: I5268eaf7307159b2eaa4c5749346aa562574a6e2
---
M resources/src/jquery/jquery.suggestions.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/25/130425/1

diff --git a/resources/src/jquery/jquery.suggestions.js 
b/resources/src/jquery/jquery.suggestions.js
index 22e8652..da0bb53 100644
--- a/resources/src/jquery/jquery.suggestions.js
+++ b/resources/src/jquery/jquery.suggestions.js
@@ -232,7 +232,7 @@
                                                } else {
                                                        // Expand from right
                                                        newCSS.left = 'auto';
-                                                       newCSS.right = $( 
document ).width() - ( context.config.$region.offset().left + 
context.config.$region.outerWidth() );
+                                                       newCSS.right = $( 
'body' ).width() - ( context.config.$region.offset().left + 
context.config.$region.outerWidth() );
                                                }
 
                                                context.data.$container.css( 
newCSS );

-- 
To view, visit https://gerrit.wikimedia.org/r/130425
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5268eaf7307159b2eaa4c5749346aa562574a6e2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to