From dc5a3e57a96b697c6bdd11f7a2100b9fb6cc70f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Fri, 2 Oct 2020 13:22:01 +0000 Subject: [FIX] mail: disable initial scroll position for chatter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit task-2350534 closes odoo/odoo#59018 X-original-commit: 4db7ecd836525357f408359e000a12880a5eab4a Related: odoo/enterprise#13779 Signed-off-by: Alexandre Kühn (aku) Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/src/models/thread_view/thread_viewer.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'addons/mail/static/src/models/thread_view/thread_viewer.js') diff --git a/addons/mail/static/src/models/thread_view/thread_viewer.js b/addons/mail/static/src/models/thread_view/thread_viewer.js index da546338ca3..3c643339eff 100644 --- a/addons/mail/static/src/models/thread_view/thread_viewer.js +++ b/addons/mail/static/src/models/thread_view/thread_viewer.js @@ -19,6 +19,12 @@ function factory(dependencies) { if (!this.threadCache) { return; } + if (this.chatter) { + // Initial scroll position is disabled for chatter because it is + // too complex to handle correctly and less important + // functionally. + return; + } this.update({ threadCacheInitialScrollPositions: Object.assign({}, this.threadCacheInitialScrollPositions, { [this.threadCache.localId]: scrollTop, -- cgit v1.2.3