resize the composer when you change rooms

pull/21833/head
Matthew Hodgson 2015-11-28 22:20:14 +00:00
parent 9befe243b5
commit 52376091cb
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,7 @@ module.exports = React.createClass({
original: null,
index: 0
};
var self = this;
this.sentHistory = {
// The list of typed messages. Index 0 is more recent
data: [],
@ -138,6 +139,8 @@ module.exports = React.createClass({
// restore the original text the user was typing.
this.element.value = this.originalText;
}
self.resizeInput();
return true;
},
@ -153,6 +156,7 @@ module.exports = React.createClass({
var text = window.sessionStorage.getItem("input_" + this.roomId);
if (text) {
this.element.value = text;
self.resizeInput();
}
}
};