don't set needless attributes for tab elements on Minefield.
This commit is contained in:
parent
8d82e02491
commit
b6e9b67430
@ -809,12 +809,14 @@ TreeStyleTabBrowser.prototype = {
|
||||
}
|
||||
else {
|
||||
aTab.removeAttribute('align');
|
||||
aTab.setAttribute('maxwidth', 250);
|
||||
aTab.setAttribute('minwidth', this.mTabBrowser.mTabContainer.mTabMinWidth);
|
||||
aTab.setAttribute('width', '0');
|
||||
aTab.setAttribute('flex', 100);
|
||||
aTab.maxWidth = 250;
|
||||
aTab.minWidth = this.mTabBrowser.mTabContainer.mTabMinWidth;
|
||||
if ('mTabMinWidth' in this.mTabBrowser.mTabContainer) { // Firefox 3.6 or older
|
||||
aTab.setAttribute('maxwidth', 250);
|
||||
aTab.setAttribute('minwidth', this.mTabBrowser.mTabContainer.mTabMinWidth);
|
||||
aTab.setAttribute('width', '0');
|
||||
aTab.maxWidth = 250;
|
||||
aTab.minWidth = this.mTabBrowser.mTabContainer.mTabMinWidth;
|
||||
aTab.setAttribute('flex', 100);
|
||||
}
|
||||
if (this.getTreePref('compatibility.TMP'))
|
||||
aTab.removeAttribute('dir'); // Tab Mix Plus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user