B2G/gecko/browser/devtools/webconsole/HUDService.jsm
/**
   * Reset the height of the Web Console.
   *
   * @param string aHUDId The ID of the Web Console.
   */
Reset the height of the Web Console.
@param string aHUDId The ID of the Web Console.
Reset the height of the Web Console . @param string aHUDId The ID of the Web Console .
function HS_resetHeight(aHUDId)
  {
    let HUD = this.hudReferences[aHUDId];
    let innerHeight = HUD.tab.linkedBrowser.clientHeight;
    let chromeWindow = HUD.chromeWindow;
    if (!HUD.consolePanel) {
      let splitterStyle = chromeWindow.getComputedStyle(HUD.splitter, null);
      innerHeight += parseInt(splitterStyle.height) +
                     parseInt(splitterStyle.borderTopWidth) +
                     parseInt(splitterStyle.borderBottomWidth) +
                     parseInt(splitterStyle.marginTop) +
                     parseInt(splitterStyle.marginBottom);
    }
    let boxStyle = chromeWindow.getComputedStyle(HUD.iframe, null);
    innerHeight += parseInt(boxStyle.height) +
                   parseInt(boxStyle.borderTopWidth) +
                   parseInt(boxStyle.borderBottomWidth);
    let height = this.lastConsoleHeight > 0 ? this.lastConsoleHeight :
      Math.ceil(innerHeight * DEFAULT_CONSOLE_HEIGHT);
    if ((innerHeight - height) < MINIMUM_PAGE_HEIGHT) {
      height = innerHeight - MINIMUM_PAGE_HEIGHT;
    }
    if (isNaN(height) || height < MINIMUM_CONSOLE_HEIGHT) {
      height = MINIMUM_CONSOLE_HEIGHT;
    }
    HUD.iframe.style.height = height + "px";
  }
function HS_resetHeight ( aHUDId ) { let HUD = this . hudReferences [ aHUDId ] ; let innerHeight = HUD . tab . linkedBrowser . clientHeight ; let chromeWindow = HUD . chromeWindow ; if ( ! HUD . consolePanel ) { let splitterStyle = chromeWindow . getComputedStyle ( HUD . splitter , null ) ; innerHeight += parseInt ( splitterStyle . height ) + parseInt ( splitterStyle . borderTopWidth ) + parseInt ( splitterStyle . borderBottomWidth ) + parseInt ( splitterStyle . marginTop ) + parseInt ( splitterStyle . marginBottom ) ; } let boxStyle = chromeWindow . getComputedStyle ( HUD . iframe , null ) ; innerHeight += parseInt ( boxStyle . height ) + parseInt ( boxStyle . borderTopWidth ) + parseInt ( boxStyle . borderBottomWidth ) ; let height = this . lastConsoleHeight > 0 ? this . lastConsoleHeight : Math . ceil ( innerHeight * DEFAULT_CONSOLE_HEIGHT ) ; if ( ( innerHeight - height ) < MINIMUM_PAGE_HEIGHT ) { height = innerHeight - MINIMUM_PAGE_HEIGHT ; } if ( isNaN ( height ) || height < MINIMUM_CONSOLE_HEIGHT ) { height = MINIMUM_CONSOLE_HEIGHT ; } HUD . iframe . style . height = height + "px" ; }
Reset the height of the Web Console.
Reset the height of the Web Console .