diff options
author | Asaad Mahmood <Unknowngi@live.com> | 2015-10-12 20:55:40 +0500 |
---|---|---|
committer | Asaad Mahmood <Unknowngi@live.com> | 2015-10-12 20:55:40 +0500 |
commit | 72b3a1d695f0dc206c2bc0f22a7ae615aa92aad6 (patch) | |
tree | 4ea3ce84321124994e22e5081dcd05f7a7f3d875 /web/react/components/textbox.jsx | |
parent | f55416d9f45afcb310246426366cd261f138029f (diff) | |
download | chat-72b3a1d695f0dc206c2bc0f22a7ae615aa92aad6.tar.gz chat-72b3a1d695f0dc206c2bc0f22a7ae615aa92aad6.tar.bz2 chat-72b3a1d695f0dc206c2bc0f22a7ae615aa92aad6.zip |
Other UI Improvements
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) { |