summaryrefslogtreecommitdiffstats
path: root/webapp/components/rhs_comment.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-07-12 17:37:04 -0400
committerSaturnino Abril <saturnino.abril@gmail.com>2017-07-13 06:37:04 +0900
commit26370f6eabe17744f8d23b5f815632cf7493387b (patch)
tree1c0587080760c2f35900839676438d5d162a059c /webapp/components/rhs_comment.jsx
parentdf3290c4cf93101b5104e7395d9a0af208eff513 (diff)
downloadchat-26370f6eabe17744f8d23b5f815632cf7493387b.tar.gz
chat-26370f6eabe17744f8d23b5f815632cf7493387b.tar.bz2
chat-26370f6eabe17744f8d23b5f815632cf7493387b.zip
PLT-7062 Moved emoji picker in RHS to attach to the body of the page (#6923)
Diffstat (limited to 'webapp/components/rhs_comment.jsx')
-rw-r--r--webapp/components/rhs_comment.jsx30
1 files changed, 15 insertions, 15 deletions
diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx
index 68190da98..568d85304 100644
--- a/webapp/components/rhs_comment.jsx
+++ b/webapp/components/rhs_comment.jsx
@@ -26,6 +26,19 @@ import {Link} from 'react-router/es6';
import {FormattedMessage} from 'react-intl';
export default class RhsComment extends React.Component {
+ static propTypes = {
+ post: PropTypes.object,
+ lastPostCount: PropTypes.number,
+ user: PropTypes.object.isRequired,
+ currentUser: PropTypes.object.isRequired,
+ compactDisplay: PropTypes.bool,
+ useMilitaryTime: PropTypes.bool.isRequired,
+ isFlagged: PropTypes.bool,
+ status: PropTypes.string,
+ isBusy: PropTypes.bool,
+ removePost: PropTypes.func.isRequired
+ };
+
constructor(props) {
super(props);
@@ -332,9 +345,10 @@ export default class RhsComment extends React.Component {
show={this.state.showEmojiPicker}
onHide={this.toggleEmojiPicker}
target={() => this.refs.dotMenu}
- container={this.props.getPostList}
onEmojiClick={this.reactEmojiClick}
rightOffset={15}
+ spaceRequiredAbove={342}
+ spaceRequiredBelow={342}
/>
<a
href='#'
@@ -435,17 +449,3 @@ export default class RhsComment extends React.Component {
);
}
}
-
-RhsComment.propTypes = {
- post: PropTypes.object,
- lastPostCount: PropTypes.number,
- user: PropTypes.object.isRequired,
- currentUser: PropTypes.object.isRequired,
- compactDisplay: PropTypes.bool,
- useMilitaryTime: PropTypes.bool.isRequired,
- isFlagged: PropTypes.bool,
- status: PropTypes.string,
- isBusy: PropTypes.bool,
- getPostList: PropTypes.func.isRequired,
- removePost: PropTypes.func.isRequired
-};