mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
fix unwanted vertical scrollbar issue and typo
This commit is contained in:
parent
f028b343b0
commit
3cc1b1ad82
1 changed files with 2 additions and 2 deletions
|
@ -239,7 +239,7 @@ module.exports = React.createClass({
|
|||
// temporarily crimp clientHeight to 0 to get an accurate scrollHeight value
|
||||
this.refs.textarea.style.height = "0px";
|
||||
var newHeight = this.refs.textarea.scrollHeight < 100 ? this.refs.textarea.scrollHeight : 100;
|
||||
this.refs.textarea.style.height = newHeight + "px";
|
||||
this.refs.textarea.style.height = Math.ceil(newHeight) + "px";
|
||||
if (this.props.roomView) {
|
||||
// kick gemini-scrollbar to re-layout
|
||||
this.props.roomView.forceUpdate();
|
||||
|
@ -317,7 +317,7 @@ module.exports = React.createClass({
|
|||
}
|
||||
|
||||
var htmlText;
|
||||
if (this.markdownEnabled) && (htmlText = mdownToHtml(contentText)) !== contentText) {
|
||||
if (this.markdownEnabled && (htmlText = mdownToHtml(contentText)) !== contentText) {
|
||||
sendMessagePromise = isEmote ?
|
||||
MatrixClientPeg.get().sendHtmlEmote(this.props.room.roomId, contentText, htmlText) :
|
||||
MatrixClientPeg.get().sendHtmlMessage(this.props.room.roomId, contentText, htmlText);
|
||||
|
|
Loading…
Reference in a new issue