diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-07-06 04:21:04 +0800 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-07-05 16:21:04 -0400 |
commit | 81a893b556bbd4e5a73dd41b3dad92915cb06119 (patch) | |
tree | f455a019b374d619be4d88e4ddb1398d9864689d /webapp/components/rhs_thread/rhs_thread.jsx | |
parent | 4efb0f37b701aa8e875e541cc4f121c264e4d8ab (diff) | |
download | chat-81a893b556bbd4e5a73dd41b3dad92915cb06119.tar.gz chat-81a893b556bbd4e5a73dd41b3dad92915cb06119.tar.bz2 chat-81a893b556bbd4e5a73dd41b3dad92915cb06119.zip |
fix position of emoji picker (#6837)
Diffstat (limited to 'webapp/components/rhs_thread/rhs_thread.jsx')
-rw-r--r-- | webapp/components/rhs_thread/rhs_thread.jsx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/webapp/components/rhs_thread/rhs_thread.jsx b/webapp/components/rhs_thread/rhs_thread.jsx index 50f5f0aa3..bbf61af19 100644 --- a/webapp/components/rhs_thread/rhs_thread.jsx +++ b/webapp/components/rhs_thread/rhs_thread.jsx @@ -320,6 +320,10 @@ export default class RhsThread extends React.Component { return this.refs.postListContainer; } + getSidebarBody = () => { + return this.refs.sidebarbody; + } + render() { if (this.props.posts == null || this.props.selected == null) { return ( @@ -403,7 +407,10 @@ export default class RhsThread extends React.Component { } return ( - <div className='sidebar-right__body'> + <div + className='sidebar-right__body' + ref='sidebarbody' + > <FloatingTimestamp isScrolling={this.state.isScrolling} isMobile={Utils.isMobile()} @@ -460,6 +467,7 @@ export default class RhsThread extends React.Component { channelId={selected.channel_id} rootId={selected.id} latestPostId={postsLength > 0 ? postsArray[postsLength - 1].id : selected.id} + getSidebarBody={this.getSidebarBody} /> </div> </div> |