jquery.suggestions: Use body width instead of full document width
authorFomafix <fomafix@googlemail.com>
Tue, 29 Apr 2014 19:02:30 +0000 (19:02 +0000)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 16 May 2014 17:42:30 +0000 (17:42 +0000)
commitc43ce2cf2677f3c22e1432320b16dfdedb43b706
treefde690cca55c40abb475af61bf4ada5884102b01
parentb2cfe401382b53e6d862fecd1ba200e1842d5cfa
jquery.suggestions: Use body width instead of full document width

When there is a overflowing element in the content, the width of
the "document" is wider than the visible width within the browser
window. Use <body> instead of document.

This reverts 4d799b48 (a fix for bug 45668).

Bug: 54091
Bug: 64233
Change-Id: I5268eaf7307159b2eaa4c5749346aa562574a6e2
resources/src/jquery/jquery.suggestions.js