B2G/gecko/browser/components/tabview/groupitems.js
//   stacked - true to get content bounds for stacked mode
true to get content bounds for stacked mode
true to get content bounds for stacked mode
function GroupItem_getContentBounds(options) {
    let box = this.getBounds();
    let titleHeight = this.$titlebar.height();
    box.top += titleHeight;
    box.height -= titleHeight;
    let appTabTrayContainer = iQ(this.$appTabTray[0].parentNode);
    let appTabTrayWidth = appTabTrayContainer.width();
    if (appTabTrayWidth)
      appTabTrayWidth += parseInt(appTabTrayContainer.css(UI.rtl ? "left" : "right"));
    box.width -= appTabTrayWidth;
    if (UI.rtl) {
      box.left += appTabTrayWidth;
    }
    box.inset(6, 6);
    if (options && options.stacked)
      box.height -= this.$expander.height() + 9; 
    return box;
  }
function GroupItem_getContentBounds ( options ) { let box = this . getBounds ( ) ; let titleHeight = this . $titlebar . height ( ) ; box . top += titleHeight ; box . height -= titleHeight ; let appTabTrayContainer = iQ ( this . $appTabTray [ 0 ] . parentNode ) ; let appTabTrayWidth = appTabTrayContainer . width ( ) ; if ( appTabTrayWidth ) appTabTrayWidth += parseInt ( appTabTrayContainer . css ( UI . rtl ? "left" : "right" ) ) ; box . width -= appTabTrayWidth ; if ( UI . rtl ) { box . left += appTabTrayWidth ; } box . inset ( 6 , 6 ) ; if ( options && options . stacked ) box . height -= this . $expander . height ( ) + 9 ; return box ; }
stacked - true to get content bounds for stacked mode
stacked - true to get content bounds for stacked mode
// Make the computed bounds' "padding" and expand button margin actually be // themeable --OR-- compute this from actual bounds. Bug 586546 // make some room for the expand button in stacked mode // the button height plus padding