summaryrefslogtreecommitdiffstats
path: root/web/react/components/textbox.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-11-12 18:51:49 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-11-12 18:51:49 +0500
commitdc1c589369b2b754401159b7896f7fcd3ec4bc47 (patch)
treecd4a09e3d676c4ab8212db04df04eeb35245d5f4 /web/react/components/textbox.jsx
parent1c4d7f2d503df8fcd66c079b250ec9c1a15a1bfe (diff)
downloadchat-dc1c589369b2b754401159b7896f7fcd3ec4bc47.tar.gz
chat-dc1c589369b2b754401159b7896f7fcd3ec4bc47.tar.bz2
chat-dc1c589369b2b754401159b7896f7fcd3ec4bc47.zip
Updating profile image and textbox resizing
Diffstat (limited to 'web/react/components/textbox.jsx')
-rw-r--r--web/react/components/textbox.jsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/web/react/components/textbox.jsx b/web/react/components/textbox.jsx
index 7d80eec08..e6530b941 100644
--- a/web/react/components/textbox.jsx
+++ b/web/react/components/textbox.jsx
@@ -243,7 +243,6 @@ export default class Textbox extends React.Component {
const lht = parseInt($(e).css('lineHeight'), 10);
const lines = e.scrollHeight / lht;
- const previewLinkHeightMod = 20;
let mod = 15;
if (lines < 2.5 || this.props.messageText === '') {
@@ -259,10 +258,10 @@ export default class Textbox extends React.Component {
}
} else {
$(e).css({height: 'auto', 'overflow-y': 'scroll'}).height(167 - mod);
- $(w).css({height: 'auto'}).height(167 + previewLinkHeightMod);
+ $(w).css({height: 'auto'}).height(163);
$(w).closest('.post-body__cell').addClass('scroll');
if (this.state.preview) {
- $(ReactDOM.findDOMNode(this.refs.preview)).css({height: 'auto', 'overflow-y': 'scroll'}).height(167 - mod);
+ $(ReactDOM.findDOMNode(this.refs.preview)).css({height: 'auto', 'overflow-y': 'scroll'}).height(163);
}
}