Bug 1564443 - Fix height of conversation textbox to make it visible again. r=Paenglab a=jorgk
authorAlessandro Castellani <alessandro@thunderbird.net>
Fri, 12 Jul 2019 13:01:53 -0700
changeset 36125 efa306ce07b572592f8891e894da0726cfebb345
parent 36124 9569f36ee77d15061af35f67f686215871ef8b6f
child 36126 0274467b8c7815966ebd56bda53c2ebeafb25509
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersPaenglab, jorgk
bugs1564443
Bug 1564443 - Fix height of conversation textbox to make it visible again. r=Paenglab a=jorgk
mail/components/im/content/chat-conversation.js
--- a/mail/components/im/content/chat-conversation.js
+++ b/mail/components/im/content/chat-conversation.js
@@ -502,18 +502,17 @@
     _onSplitterChange() {
       // set the default height as the deck height (modified by the splitter)
       this.inputBox.defaultHeight = parseInt(this.inputBox.parentNode.height) -
         this._TEXTBOX_VERTICAL_OVERHEAD;
     }
 
     calculateTextboxDefaultHeight() {
       let totalSpace = parseInt(window.getComputedStyle(this).getPropertyValue("height"));
-      let textboxStyle = window.getComputedStyle(this.inputBox);
-      let lineHeight = parseInt(textboxStyle.getPropertyValue("line-height"));
+      let lineHeight = 20;
 
       // Compute the overhead size.
       let textboxHeight = this.inputBox.clientHeight;
       let deckHeight = this.inputBox.parentNode.getBoundingClientRect().height;
       this._TEXTBOX_VERTICAL_OVERHEAD = deckHeight - textboxHeight;
 
       // Calculate the number of lines to display.
       let numberOfLines = Math.round(totalSpace * this._TEXTBOX_RATIO / lineHeight);