Commit 9ae0045d authored by Dão Gottwald's avatar Dão Gottwald
Browse files

Backed out changeset b652e12fc7e3 because of bug 514891

parent 16eec7c4
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -390,9 +390,8 @@ var ctrlTab = {
    this.panel.width = Math.min(screen.availWidth * .99,
                                this.canvasWidth * 1.25 * this.tabPreviewCount);
    var estimateHeight = this.canvasHeight * 1.25 + 75;
    this.panel.openPopupAtScreen(
      (screen.availLeft - screen.left) + (screen.availWidth - this.panel.width) / 2,
      (screen.availTop - screen.top) + (screen.availHeight - estimateHeight) / 2,
    this.panel.openPopupAtScreen(screen.availLeft + (screen.availWidth - this.panel.width) / 2,
                                 screen.availTop + (screen.availHeight - estimateHeight) / 2,
                                 false);
  },

@@ -687,9 +686,8 @@ var allTabs = {

    this.panel.popupBoxObject.setConsumeRollupEvent(Ci.nsIPopupBoxObject.ROLLUP_CONSUME);
    var estimateHeight = (this._maxHeight + parseInt(this.container.maxHeight) + 50) / 2;
    this.panel.openPopupAtScreen(
      (screen.availLeft - screen.left) + (screen.availWidth - this._maxWidth) / 2,
      (screen.availTop - screen.top) + (screen.availHeight - estimateHeight) / 2,
    this.panel.openPopupAtScreen(screen.availLeft + (screen.availWidth - this._maxWidth) / 2,
                                 screen.availTop + (screen.availHeight - estimateHeight) / 2,
                                 false);
  },