diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-09-29 18:50:23 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-09-29 19:47:12 +0000 |
| commit | fb9b1c8a169840951925fa810f71e865a54e3a31 (patch) | |
| tree | 591c34b02dfdde95ebaf296db7abfee5614e22ea /addons/mail/static/src/widgets | |
| parent | b4783500db5b7c645859227e8be5cd55025b2882 (diff) | |
[FIX] mail: reintroduce auto scroll on receiving message
task-2336251
closes odoo/odoo#58867
X-original-commit: f732980b2e5e83bcf2fdc8d3ce756f256cacbd4f
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/widgets')
| -rw-r--r-- | addons/mail/static/src/widgets/form_renderer/form_renderer_tests.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/static/src/widgets/form_renderer/form_renderer_tests.js b/addons/mail/static/src/widgets/form_renderer/form_renderer_tests.js index 88c95bdd748..8817664497c 100644 --- a/addons/mail/static/src/widgets/form_renderer/form_renderer_tests.js +++ b/addons/mail/static/src/widgets/form_renderer/form_renderer_tests.js @@ -821,7 +821,7 @@ QUnit.test('Form view not scrolled when switching record', async function (asser ); await afterNextRender(async () => { - controllerContentEl.scrollTop = controllerContentEl.scrollHeight - controllerContentEl.offsetHeight; + controllerContentEl.scrollTop = controllerContentEl.scrollHeight - controllerContentEl.clientHeight; await triggerEvent( document.querySelector('.o_ThreadView_messageList'), 'scroll' @@ -829,7 +829,7 @@ QUnit.test('Form view not scrolled when switching record', async function (asser }); assert.strictEqual( controllerContentEl.scrollTop, - controllerContentEl.scrollHeight - controllerContentEl.offsetHeight, + controllerContentEl.scrollHeight - controllerContentEl.clientHeight, "The controller container should be scrolled to its bottom" ); |
