diff options
Diffstat (limited to 'addons/web/static/src/js/libs/jquery.js')
| -rw-r--r-- | addons/web/static/src/js/libs/jquery.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/libs/jquery.js b/addons/web/static/src/js/libs/jquery.js index 471d07bb980..15917cede38 100644 --- a/addons/web/static/src/js/libs/jquery.js +++ b/addons/web/static/src/js/libs/jquery.js @@ -171,7 +171,7 @@ $.fn.extend({ // Search for a body child which is at least as tall as the body // and which has the ability to scroll if enough content in it. If // found, suppose this is the top scrolling element. - if (el.scrollHeight < bodyHeight) { + if (bodyHeight - el.scrollHeight > 1) { continue; } const $el = $(el); |
