B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Updates the size of the input field (command line) to fit its contents.
   *
   * @returns void
   */
Updates the size of the input field (command line) to fit its contents.
@returns void
Updates the size of the input field ( command line ) to fit its contents . @returns void
function JST_resizeInput()
  {
    let inputNode = this.inputNode;
    inputNode.style.height = "auto";
    let scrollHeight = inputNode.inputField.scrollHeight;
    if (scrollHeight > 0) {
      inputNode.style.height = scrollHeight + "px";
    }
  }
function JST_resizeInput ( ) { let inputNode = this . inputNode ; inputNode . style . height = "auto" ; let scrollHeight = inputNode . inputField . scrollHeight ; if ( scrollHeight > 0 ) { inputNode . style . height = scrollHeight + "px" ; } }
Updates the size of the input field (command line) to fit its contents.
Updates the size of the input field ( command line ) to fit its contents .
// Reset the height so that scrollHeight will reflect the natural height of // the contents of the input field. // Now resize the input field to fit its contents.