diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2015-10-22 16:29:42 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2015-10-22 16:29:42 -0400 |
commit | 2ccf80d91d9f9236e15a674c7d2d61261538c9b9 (patch) | |
tree | 54f01546524224f454418ff611d792074197ebd8 /web/react/components/create_post.jsx | |
parent | 649f42e3fc706f8fa829276bcdb825381bc703f2 (diff) | |
parent | 4129b204c3f6d76154f98ed715c11508d5348cc9 (diff) | |
download | chat-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.jsx | 6 |
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(); |