optimize
This commit is contained in:
parent
1ffd3fbb71
commit
5d379c12c3
@ -370,7 +370,8 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
)
|
)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!this.isVertical) {
|
var count = this.pinnedTabsCount;
|
||||||
|
if (!this.isVertical || !count) {
|
||||||
this.resetPinnedTabs();
|
this.resetPinnedTabs();
|
||||||
b.mTabContainer._positionPinnedTabs();
|
b.mTabContainer._positionPinnedTabs();
|
||||||
return;
|
return;
|
||||||
@ -381,7 +382,6 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
var maxWidth = tabbarPlaceHolderWidth || tabbarWidth;
|
var maxWidth = tabbarPlaceHolderWidth || tabbarWidth;
|
||||||
|
|
||||||
var count = this.pinnedTabsCount;
|
|
||||||
var width = Math.min(maxWidth, aWidth || this.window.TreeStyleTabService.pinnedTabWidth);
|
var width = Math.min(maxWidth, aWidth || this.window.TreeStyleTabService.pinnedTabWidth);
|
||||||
if (width < 0)
|
if (width < 0)
|
||||||
width = maxWidth;
|
width = maxWidth;
|
||||||
|
Loading…
Reference in New Issue
Block a user