summaryrefslogtreecommitdiffstats
path: root/web/react/components/textbox.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-11-12 18:09:18 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-11-12 18:09:18 +0500
commit2f95210a2907c1b74a390f143f58550cec1f77ca (patch)
tree78d20145d63bab10d158dd9bb96d8981aa0e523a /web/react/components/textbox.jsx
parent8bd5c4bf47c120fd06f9ab6329179662ab93399c (diff)
downloadchat-2f95210a2907c1b74a390f143f58550cec1f77ca.tar.gz
chat-2f95210a2907c1b74a390f143f58550cec1f77ca.tar.bz2
chat-2f95210a2907c1b74a390f143f58550cec1f77ca.zip
UI Improvements for centre channel due to preview
Diffstat (limited to 'web/react/components/textbox.jsx')
-rw-r--r--web/react/components/textbox.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/textbox.jsx b/web/react/components/textbox.jsx
index 82f830038..7d80eec08 100644
--- a/web/react/components/textbox.jsx
+++ b/web/react/components/textbox.jsx
@@ -252,7 +252,7 @@ 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 + previewLinkHeightMod);
+ $(w).css({height: 'auto'}).height(e.scrollHeight + 2);
$(w).closest('.post-body__cell').removeClass('scroll');
if (this.state.preview) {
$(ReactDOM.findDOMNode(this.refs.preview)).css({height: 'auto', 'overflow-y': 'auto'}).height(e.scrollHeight - mod);