jquery.suggestions: Use document.documentElement.clientWidth
authorFomafix <fomafix@googlemail.com>
Wed, 5 Jun 2019 19:33:41 +0000 (21:33 +0200)
committerFomafix <fomafix@googlemail.com>
Sat, 8 Jun 2019 12:04:13 +0000 (14:04 +0200)
commit578c8e6855ca3888dc2214138b1d31b57ceedf1c
treef14dc118004dce15d7781f61118dd873ec729d2a
parent82f5752cb0a582a3c79ef373d42706c604a15805
jquery.suggestions: Use document.documentElement.clientWidth

On skins with a border and/or a margin on the <body> or the <html>
element the width of <body> is smaller than the width of the window.

Also use .appendTo( document.body ) instead of .appendTo( $( 'body' ) ).

Bug: T47668
Change-Id: I209eb6e3b95ba0fc6e7c5084242a90ca04c9e196
resources/src/jquery/jquery.suggestions.js