X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=resources%2Fsrc%2Fjquery%2Fjquery.suggestions.js;h=a20a948d821496bc42d53e1327145d7be376d47e;hb=0307799827e149398328781b69f48d164930e10e;hp=8768c24b3d3f8e930c9aa9cf16dd9000b89f83fa;hpb=df8c4551dcba95218cf6021dc1f3542f1095b56f;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/jquery/jquery.suggestions.js b/resources/src/jquery/jquery.suggestions.js index 8768c24b3d..a20a948d82 100644 --- a/resources/src/jquery/jquery.suggestions.js +++ b/resources/src/jquery/jquery.suggestions.js @@ -232,7 +232,7 @@ $.suggestions = { } 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 );