diff options
author | Corey Hulen <corey@hulen.com> | 2015-10-15 11:42:01 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-10-15 11:42:01 -0700 |
commit | 5f1734a3c294d1a6ca453a0b3dbb7f67f97cf4a5 (patch) | |
tree | da20ee242192263e0e0b2077e296876a8e250091 /web/react/components/create_comment.jsx | |
parent | f09685a37398da7808117b960321a14ab7989da7 (diff) | |
parent | 3d16d64c0ba2233b680e4ded01784a892c63e925 (diff) | |
download | chat-5f1734a3c294d1a6ca453a0b3dbb7f67f97cf4a5.tar.gz chat-5f1734a3c294d1a6ca453a0b3dbb7f67f97cf4a5.tar.bz2 chat-5f1734a3c294d1a6ca453a0b3dbb7f67f97cf4a5.zip |
Merge pull request #1076 from asaadmahmoodspin/ui-improvements
Multiple UI Improvements
Diffstat (limited to 'web/react/components/create_comment.jsx')
-rw-r--r-- | web/react/components/create_comment.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/react/components/create_comment.jsx b/web/react/components/create_comment.jsx index 2ac5d2179..fa3f82c2e 100644 --- a/web/react/components/create_comment.jsx +++ b/web/react/components/create_comment.jsx @@ -46,7 +46,9 @@ export default class CreateComment extends React.Component { componentDidUpdate(prevProps, prevState) { if (prevState.uploadsInProgress < this.state.uploadsInProgress) { $('.post-right__scroll').scrollTop($('.post-right__scroll')[0].scrollHeight); - $('.post-right__scroll').perfectScrollbar('update'); + if ($(window).width() > 768) { + $('.post-right__scroll').perfectScrollbar('update'); + } } } handleSubmit(e) { |