diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-10-02 13:22:01 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-10-02 15:20:09 +0000 |
| commit | dc5a3e57a96b697c6bdd11f7a2100b9fb6cc70f9 (patch) | |
| tree | 5f7794947a46451486d7422b9f04f8948c3d7a47 /addons/mail/static/src/models/thread_view | |
| parent | 26efc84c5cac47a2cc83d7b084f8b71528fec6c7 (diff) | |
[FIX] mail: disable initial scroll position for chatter
task-2350534
closes odoo/odoo#59018
X-original-commit: 4db7ecd836525357f408359e000a12880a5eab4a
Related: odoo/enterprise#13779
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_view')
| -rw-r--r-- | addons/mail/static/src/models/thread_view/thread_viewer.js | 6 |
1 files changed, 6 insertions, 0 deletions
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, |
