Define size of narrow sidebar by pixels always
This commit is contained in:
parent
573f1d179d
commit
4d34bd48f7
@ -68,7 +68,7 @@ pref("extensions.treestyletab.tabbar.invertScrollbar", true);
|
||||
* This option works only for vertical tab bar.
|
||||
*/
|
||||
pref("extensions.treestyletab.tabbar.narrowScrollbar", true);
|
||||
pref("extensions.treestyletab.tabbar.narrowScrollbar.size", "10px");
|
||||
pref("extensions.treestyletab.tabbar.narrowScrollbar.width", 10);
|
||||
|
||||
/**
|
||||
* On some environments (ex. GNOME3 on Linux), "narrow scrollbar" cannot get
|
||||
|
@ -2276,7 +2276,7 @@ var TreeStyleTabBase = inherit(TreeStyleTabConstants, {
|
||||
case 'extensions.treestyletab.tabbar.scrollToNewTab.mode':
|
||||
return this.scrollToNewTabMode = value;
|
||||
|
||||
case 'extensions.treestyletab.tabbar.narrowScrollbar.size':
|
||||
case 'extensions.treestyletab.tabbar.narrowScrollbar.width':
|
||||
return utils.updateNarrowScrollbarStyle();
|
||||
|
||||
case 'browser.tabs.animate':
|
||||
|
@ -519,15 +519,15 @@ var TreeStyleTabUtils = {
|
||||
' .tabbrowser-arrowscrollbox' +
|
||||
' > scrollbox' +
|
||||
' > scrollbar[orient="vertical"] * {' +
|
||||
' max-width: %SIZE%;' +
|
||||
' min-width: %SIZE%;' +
|
||||
' max-width: %SIZE%px;' +
|
||||
' min-width: %SIZE%px;' +
|
||||
'}' +
|
||||
|
||||
'tabs.tabbrowser-tabs[%MODE%="vertical"][%NARROW%="true"]' +
|
||||
' .tabbrowser-arrowscrollbox' +
|
||||
' > scrollbox' +
|
||||
' > scrollbar[orient="vertical"] {' +
|
||||
' font-size: %SIZE%;' +
|
||||
' font-size: %SIZE%px;' +
|
||||
'}' +
|
||||
|
||||
'tabs.tabbrowser-tabs[%MODE%="vertical"][%NARROW%="true"]' +
|
||||
@ -546,7 +546,7 @@ var TreeStyleTabUtils = {
|
||||
this.kOVERRIDE_SYSTEM_SCROLLBAR_APPEARANCE : '' )
|
||||
.replace(/%MODE%/g, this.kMODE)
|
||||
.replace(/%NARROW%/g, this.kNARROW_SCROLLBAR)
|
||||
.replace(/%SIZE%/g, utils.getTreePref('tabbar.narrowScrollbar.size'))
|
||||
.replace(/%SIZE%/g, utils.getTreePref('tabbar.narrowScrollbar.width'))
|
||||
);
|
||||
this.lastAgentSheetForNarrowScrollbar = this.makeURIFromSpec(style);
|
||||
SSS.loadAndRegisterSheet(this.lastAgentSheetForNarrowScrollbar, SSS.AGENT_SHEET);
|
||||
|
Loading…
Reference in New Issue
Block a user