diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2015-10-14 09:02:05 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2015-10-14 09:02:05 -0400 |
commit | 962a5d8beb8b0eb634b1bff9258b209142041dc9 (patch) | |
tree | 64e636b204f2845349893d659c29117c762d8b16 /web/react/components/create_post.jsx | |
parent | cdbe6342bb018e16d6eb3f04c0c6c8457805e61a (diff) | |
parent | 99f243b44443babe3fd332538d2b102218834462 (diff) | |
download | chat-962a5d8beb8b0eb634b1bff9258b209142041dc9.tar.gz chat-962a5d8beb8b0eb634b1bff9258b209142041dc9.tar.bz2 chat-962a5d8beb8b0eb634b1bff9258b209142041dc9.zip |
Merge pull request #1046 from asaadmahmoodspin/ui-improvements
Multiple UI Improvements
Diffstat (limited to 'web/react/components/create_post.jsx')
-rw-r--r-- | web/react/components/create_post.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx index ed265ab02..f35079383 100644 --- a/web/react/components/create_post.jsx +++ b/web/react/components/create_post.jsx @@ -192,9 +192,12 @@ export default class CreatePost extends React.Component { PostStore.storeCurrentDraft(draft); } resizePostHolder() { - const height = $(window).height() - $(React.findDOMNode(this.refs.topDiv)).height() - $('#error_bar').outerHeight() - 50; + const height = $(window).height() - $(React.findDOMNode(this.refs.topDiv)).height() - 50; $('.post-list-holder-by-time').css('height', `${height}px`); $(window).trigger('resize'); + if ($(window).width() > 960) { + $('#post_textbox').focus(); + } } handleUploadStart(clientIds, channelId) { const draft = PostStore.getDraft(channelId); |