diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-08-20 14:47:07 +0200 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-08-21 16:57:51 +0200 |
| commit | 7e7e72edfd35edeb1bd08c1c66c83e4961783700 (patch) | |
| tree | f55c02e18f3ff2dae87701d386b3dabf6b45cb16 /addons/mail/static/src/xml/thread.xml | |
| parent | 2831fa7926a7f10285f48b1565650326cd7c99f7 (diff) | |
[FIX] mail: 'is typing...' notification bar next to composer.
Revision on https://github.com/odoo/odoo/commit/0eab8f6e0b17a4ff6a859d14b14b643212cbadc1
The commit above fixed the definition of ASC/DESC on the rendering
of mail threads.
However, the 'is typing...' notification bar was still partially
using the old definitions. As a result, this notification bar was
not sticking at the visible bottom of the thread when there were
few messages:
+--------[top]--------+ <---- visible top
| 1st message |
| 2nd message |
| 3rd message |
| X is typing... |
| |
| |
| |
+------[bottom]-------+ <---- visible bottom
This commit fixes the issue so that the 'is typing...' notification
bar is always at the bottom of the thread in such case:
+--------[top]--------+ <---- visible top
| 1st message |
| 2nd message |
| 3rd message |
| |
| |
| |
| X is typing... |
+------[bottom]-------+ <---- visible bottom
Note that it fixes the case with 'few messages', without altering the case with
'several' messages:
+--------[top]--------+
| |
| (older messages) |
| |
|- - - - - - - - - - -| <---- visible top
| ... |
| message i |
| message i + 1 |
| ... |
| |
| X is typing... |
|- - - - - - - - - - -| <---- visible bottom
| |
| (newer messages) |
| |
+------[bottom]-------+
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
| -rw-r--r-- | addons/mail/static/src/xml/thread.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml index a35bdfa85dc..3cfaa19cb3d 100644 --- a/addons/mail/static/src/xml/thread.xml +++ b/addons/mail/static/src/xml/thread.xml @@ -209,9 +209,9 @@ @param {mail.model.AbstractThread} thread --> <t t-name="mail.widget.Thread.TypingNotificationBar"> - <div class="o_thread_typing_notification_free_space" t-if="options.displayOrder === ORDER.DESC"/> - <div class="o_thread_typing_notification_bar"/> <div class="o_thread_typing_notification_free_space" t-if="options.displayOrder === ORDER.ASC"/> + <div class="o_thread_typing_notification_bar"/> + <div class="o_thread_typing_notification_free_space" t-if="options.displayOrder === ORDER.DESC"/> </t> <!-- |
