diff options
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
| -rw-r--r-- | addons/mail/static/src/xml/thread.xml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml index b33452382ac..9b81e5e8d28 100644 --- a/addons/mail/static/src/xml/thread.xml +++ b/addons/mail/static/src/xml/thread.xml @@ -156,6 +156,9 @@ @param {boolean} [options.displayLoadMore=false] @param {string|integer} [options.messagesSeparatorPosition] 'top' or message ID, the separator is placed just after this message. + @param {boolean} [options.withPhantomJS=false] phantomJS is a mess with flexbox + so it may break some features like auto-fetch message on scroll. + TODO: remove this option when we no longer use phantomJS _____________ | | @@ -169,7 +172,7 @@ --> <t t-name="mail.widget.Thread.Content.ASC"> - <div class="o_mail_thread_content_asc"> + <div t-att-class="options.withPhantomJS ? '' : 'o_mail_thread_content_asc'"> <t t-if="options.messagesSeparatorPosition == 'top'" t-call="mail.MessagesSeparator"/> <t t-set="messages" t-value="messages.slice().reverse()"/> <t t-call="mail.widget.Thread.Messages"/> @@ -182,6 +185,9 @@ @param {Object} options @param {boolean} [options.displayBottomThreadFreeSpace=false] @param {boolean} [options.displayLoadMore=false] + @param {boolean} [options.withPhantomJS=false] phantomJS is a mess with flexbox + so it may break some features like auto-fetch message on scroll. + TODO: remove this option when we no longer use phantomJS _____________ | | @@ -194,7 +200,7 @@ DESC Order --> <t t-name="mail.widget.Thread.Content.DESC"> - <div class="o_mail_thread_content_desc"> + <div t-att-class="options.withPhantomJS ? '' : 'o_mail_thread_content_desc'"> <t t-if="options.displayLoadMore" t-call="mail.widget.Thread.LoadMore"/> <t t-call="mail.widget.Thread.Messages"/> <t t-if="options.displayBottomThreadFreeSpace"> |
