Add handling of *.default preferences for tab bar size

This commit is contained in:
Infocatcher 2012-08-28 17:16:16 +04:00
parent 386328de35
commit 54b62268a9

View File

@ -4679,11 +4679,11 @@ TreeStyleTabBrowser.prototype = {
resetTabbarSize : function TSTBrowser_resetTabbarSize() resetTabbarSize : function TSTBrowser_resetTabbarSize()
{ {
if (this.isVertical) { if (this.isVertical) {
this.clearTreePref('tabbar.shrunkenWidth'); this.setTreePref('tabbar.shrunkenWidth', this.getTreePref('tabbar.shrunkenWidth.default'));
this.clearTreePref('tabbar.width'); this.setTreePref('tabbar.width', this.getTreePref('tabbar.width.default'));
} }
else { else {
this.clearTreePref('tabbar.height'); this.setTreePref('tabbar.height', this.getTreePref('tabbar.height.default'));
let tabContainerBox = this.getTabContainerBox(this.mTabBrowser); let tabContainerBox = this.getTabContainerBox(this.mTabBrowser);
tabContainerBox.removeAttribute('height'); tabContainerBox.removeAttribute('height');
this._tabStripPlaceHolder.height = tabContainerBox.boxObject.height; this._tabStripPlaceHolder.height = tabContainerBox.boxObject.height;