diff options
author | Stas Vovk <stasvovk@gmail.com> | 2015-10-13 14:52:29 +0300 |
---|---|---|
committer | Stas Vovk <stasvovk@gmail.com> | 2015-10-13 14:52:29 +0300 |
commit | a1328fc8b5d03ec73f1bad588d2f0bb688b1c206 (patch) | |
tree | 4d47c0e181ebe961ab2a8a02f2698faeafba9434 /web/react/components/textbox.jsx | |
parent | 822881e51aa2edce1c4d7d2e11bc44c3886daf1e (diff) | |
parent | 0144b6fd8a95c6b65695b07483a528707dce1cfe (diff) | |
download | chat-a1328fc8b5d03ec73f1bad588d2f0bb688b1c206.tar.gz chat-a1328fc8b5d03ec73f1bad588d2f0bb688b1c206.tar.bz2 chat-a1328fc8b5d03ec73f1bad588d2f0bb688b1c206.zip |
Merge branch 'master' into PLT-589
Diffstat (limited to 'web/react/components/textbox.jsx')
-rw-r--r-- | web/react/components/textbox.jsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/react/components/textbox.jsx b/web/react/components/textbox.jsx index 0563c294a..741dbcd5d 100644 --- a/web/react/components/textbox.jsx +++ b/web/react/components/textbox.jsx @@ -246,9 +246,11 @@ export default class Textbox extends React.Component { if (e.scrollHeight - mod < 167) { $(e).css({height: 'auto', 'overflow-y': 'hidden'}).height(e.scrollHeight - mod); $(w).css({height: 'auto'}).height(e.scrollHeight + 2); + $(w).closest('.post-body__cell').removeClass('scroll'); } else { $(e).css({height: 'auto', 'overflow-y': 'scroll'}).height(167); $(w).css({height: 'auto'}).height(167); + $(w).closest('.post-body__cell').addClass('scroll'); } if (prevHeight !== $(e).height() && this.props.onHeightChange) { |