don't set needless attributes for tab elements on Minefield.

This commit is contained in:
Piro / SHIMODA Hiroshi 2010-11-24 23:46:57 +09:00
parent 8d82e02491
commit b6e9b67430

View File

@ -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
}