summaryrefslogtreecommitdiffstats
path: root/web/react/components/create_post.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2015-10-22 16:29:42 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2015-10-22 16:29:42 -0400
commit2ccf80d91d9f9236e15a674c7d2d61261538c9b9 (patch)
tree54f01546524224f454418ff611d792074197ebd8 /web/react/components/create_post.jsx
parent649f42e3fc706f8fa829276bcdb825381bc703f2 (diff)
parent4129b204c3f6d76154f98ed715c11508d5348cc9 (diff)
downloadchat-2ccf80d91d9f9236e15a674c7d2d61261538c9b9.tar.gz
chat-2ccf80d91d9f9236e15a674c7d2d61261538c9b9.tar.bz2
chat-2ccf80d91d9f9236e15a674c7d2d61261538c9b9.zip
Merge pull request #1138 from rgarmsen2295/plt-777
PLT-777 Convert window resizing in post_list.jsx to React based implementation
Diffstat (limited to 'web/react/components/create_post.jsx')
-rw-r--r--web/react/components/create_post.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx
index 035899592..8b5fc4162 100644
--- a/web/react/components/create_post.jsx
+++ b/web/react/components/create_post.jsx
@@ -51,7 +51,7 @@ export default class CreatePost extends React.Component {
submitting: false,
initialText: draft.messageText,
windowWidth: Utils.windowWidth(),
- windowHeigth: Utils.windowHeight()
+ windowHeight: Utils.windowHeight()
};
}
handleResize() {
@@ -71,7 +71,7 @@ export default class CreatePost extends React.Component {
return;
}
- if (prevState.windowWidth !== this.state.windowWidth || prevState.windowHeight !== this.state.windowHeigth) {
+ if (prevState.windowWidth !== this.state.windowWidth || prevState.windowHeight !== this.state.windowHeight) {
this.resizePostHolder();
return;
}
@@ -208,7 +208,7 @@ export default class CreatePost extends React.Component {
PostStore.storeCurrentDraft(draft);
}
resizePostHolder() {
- const height = this.state.windowHeigth - $(ReactDOM.findDOMNode(this.refs.topDiv)).height() - 50;
+ const height = this.state.windowHeight - $(ReactDOM.findDOMNode(this.refs.topDiv)).height() - 50;
$('.post-list-holder-by-time').css('height', `${height}px`);
if (this.state.windowWidth > 960) {
$('#post_textbox').focus();