diff options
Diffstat (limited to 'addons/mail/static/src/components/thread_view/thread_view.js')
| -rw-r--r-- | addons/mail/static/src/components/thread_view/thread_view.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/mail/static/src/components/thread_view/thread_view.js b/addons/mail/static/src/components/thread_view/thread_view.js index 395fac68474..42e513be888 100644 --- a/addons/mail/static/src/components/thread_view/thread_view.js +++ b/addons/mail/static/src/components/thread_view/thread_view.js @@ -62,6 +62,18 @@ class ThreadView extends Component { } /** + * Get the scroll height in the message list. + * + * @returns {integer|undefined} + */ + getScrollHeight() { + if (!this._messageListRef.comp) { + return undefined; + } + return this._messageListRef.comp.getScrollHeight(); + } + + /** * Get the scroll position in the message list. * * @returns {integer|undefined} |
