Merge backout of changeset 0acf72149fc9 (bug 594002).

This commit is contained in:
Markus Stange 2010-11-06 14:39:51 +01:00
commit 5909a44092

View File

@ -132,9 +132,7 @@ function test() {
handleLoad: function (aEvent) {
let _this = this;
executeSoon(function () {
let extent = _this.window.outerWidth - _this.window.gBrowser.tabContainer.mTabstrip.scrollClientSize;
let windowWidth = _this.tabbarWidth + extent;
_this.window.resizeTo(windowWidth, _this.window.outerHeight);
_this.window.resizeTo(_this.windowWidth, _this.window.outerHeight);
ss.setWindowState(_this.window, JSON.stringify(_this.state), true);
});
},
@ -153,7 +151,7 @@ function test() {
// setup and actually run the test
run: function () {
this.tabbarWidth = Math.floor((this.numTabsToShow - 0.5) * tabMinWidth);
this.windowWidth = Math.floor((this.numTabsToShow - 0.5) * tabMinWidth);
this.window = openDialog(location, "_blank", "chrome,all,dialog=no");
this.window.addEventListener("SSTabRestoring", this, false);
this.window.addEventListener("load", this, false);