mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 980043 - Backed out changeset 7e0adf1211a7 (bug 905695). r=MattN
This commit is contained in:
parent
5acb30cc53
commit
f227a9ce99
@ -3336,11 +3336,8 @@
|
||||
<handler event="overflow"><![CDATA[
|
||||
if (event.detail == 0)
|
||||
return; // Ignore vertical events
|
||||
var tabs = document.getBindingParent(this);
|
||||
var numberOfTabs = tabs.tabbrowser.visibleTabs.length;
|
||||
if (numberOfTabs == 1)
|
||||
return;
|
||||
|
||||
var tabs = document.getBindingParent(this);
|
||||
tabs.setAttribute("overflow", "true");
|
||||
tabs._positionPinnedTabs();
|
||||
tabs._handleTabSelect(false);
|
||||
@ -3860,14 +3857,12 @@
|
||||
|
||||
TabsInTitlebar.updateAppearance();
|
||||
|
||||
if (this.tabbrowser.visibleTabs.length > 1) {
|
||||
var width = this.mTabstrip.boxObject.width;
|
||||
if (width != this.mTabstripWidth) {
|
||||
this.adjustTabstrip();
|
||||
this._fillTrailingGap();
|
||||
this._handleTabSelect();
|
||||
this.mTabstripWidth = width;
|
||||
}
|
||||
var width = this.mTabstrip.boxObject.width;
|
||||
if (width != this.mTabstripWidth) {
|
||||
this.adjustTabstrip();
|
||||
this._fillTrailingGap();
|
||||
this._handleTabSelect();
|
||||
this.mTabstripWidth = width;
|
||||
}
|
||||
|
||||
this.tabbrowser.updateWindowResizers();
|
||||
|
Loading…
Reference in New Issue
Block a user