jquery.suggestions: Correctly place dropdown for inputs with 'position: fixed'
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 1 Apr 2019 21:15:47 +0000 (23:15 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 1 Apr 2019 21:20:39 +0000 (23:20 +0200)
commit776252d4943f0e9ed246b176a3f87a1195a1696a
treed6d72615e157286877f06be9dc9a25465de4fa2d
parent9c196be1d450480b230e2ce9e162b9e1dfe8a4bb
jquery.suggestions: Correctly place dropdown for inputs with 'position: fixed'

If the input has 'position: fixed', or is within another element with
'position: fixed', then the dropdown must also have 'position: fixed'
and its position has to be calculated relative to viewport rather than
relative to document.

Bug: T210321
Change-Id: Iae795ef03d888c2b8cc1d5e7463c4692a7eeb138
resources/src/jquery/jquery.suggestions.js