summaryrefslogtreecommitdiffstats
path: root/web/react/components/textbox.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-10-12 13:18:47 -0700
committerCorey Hulen <corey@hulen.com>2015-10-12 13:18:47 -0700
commit246c7414bd2f22a3440af5df7d72f33e7207dc50 (patch)
tree26e68abf5877a250a076f282f9444f6f0d076387 /web/react/components/textbox.jsx
parent1ce37c316adceafe2f7409576c378407fe80d7b7 (diff)
parent893a72141bcab38c8a5a10ec920c9480120d6b51 (diff)
downloadchat-246c7414bd2f22a3440af5df7d72f33e7207dc50.tar.gz
chat-246c7414bd2f22a3440af5df7d72f33e7207dc50.tar.bz2
chat-246c7414bd2f22a3440af5df7d72f33e7207dc50.zip
Merge pull request #1018 from asaadmahmoodspin/ui-fixes
Other UI Improvements
Diffstat (limited to 'web/react/components/textbox.jsx')
-rw-r--r--web/react/components/textbox.jsx2
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) {