Merge pull request #511 from thelounge/revert-508-PR/optimize-textarea

Revert "Slight optimization in the textarea code"
This commit is contained in:
Maxime Poulin 2016-07-17 04:09:01 -04:00 committed by GitHub
commit 7d627e379d

View File

@ -632,8 +632,6 @@ $(function() {
.history()
.on("input keyup", function() {
var style = window.getComputedStyle(this);
var origHeight = this.style.height;
this.style.height = "0px";
this.offsetHeight; // force reflow
this.style.height = Math.min(
@ -643,9 +641,7 @@ $(function() {
+ Math.round(parseFloat(style.borderBottomWidth) || 0)
) + "px";
if (this.style.height !== origHeight) {
$("#chat .chan.active .chat").trigger("msg.sticky"); // fix growing
}
$("#chat .chan.active .chat").trigger("msg.sticky"); // fix growing
})
.tab(complete, {hint: false});