[FIX] mail: do not autoscroll attachment box when initially open
Before this commit, when a form view choose to open attachment box initially and chatter is at bottom, opening the form view was scrolling down to the attachment box. The auto-scroll to opened attachment box is desirable when the user explicitly interact with the attachment button, to show the attachments. However, it should not be triggered when opening the form. This commit fixes the issue by limiting auto-scroll to attachment box only when explicitly chosen by the user. closes odoo/odoo#135234 X-original-commit: 7415e24a918ab06d2902bb68932878619d623019 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in: