Commit 54804b5b authored by JC Brand's avatar JC Brand

Performance fix. Only set height when necessary

parent e83b0ff3
......@@ -1121,8 +1121,11 @@ converse.plugins.add('converse-chatview', {
},
inputChanged (ev) {
ev.target.style.height = 'auto';
ev.target.style.height = ev.target.scrollHeight + 'px';
const height = ev.target.scrollHeight + 'px';
if (ev.target.style.height != height) {
ev.target.style.height = 'auto';
ev.target.style.height = height;
}
},
clearMessages (ev) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment