[FIX] mail: disable initial scroll position for chatter
task-2350534 closes odoo/odoo#59024 X-original-commit: 4db7ecd836525357f408359e000a12880a5eab4a Related: odoo/enterprise#13782 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user