diff --git a/content/treestyletab/treestyletab.xul b/content/treestyletab/treestyletab.xul index 6c6d7c7b..5b7d51dc 100644 --- a/content/treestyletab/treestyletab.xul +++ b/content/treestyletab/treestyletab.xul @@ -126,7 +126,9 @@ - + + diff --git a/locale/da-DK/treestyletab/treestyletab.dtd b/locale/da-DK/treestyletab/treestyletab.dtd index 1b9834b8..29da5016 100644 --- a/locale/da-DK/treestyletab/treestyletab.dtd +++ b/locale/da-DK/treestyletab/treestyletab.dtd @@ -192,7 +192,8 @@ - + + diff --git a/locale/de-DE/treestyletab/treestyletab.dtd b/locale/de-DE/treestyletab/treestyletab.dtd index e93436f9..226d7108 100644 --- a/locale/de-DE/treestyletab/treestyletab.dtd +++ b/locale/de-DE/treestyletab/treestyletab.dtd @@ -190,7 +190,8 @@ - + + diff --git a/locale/en-US/treestyletab/treestyletab.dtd b/locale/en-US/treestyletab/treestyletab.dtd index 6a63bc73..a780985d 100644 --- a/locale/en-US/treestyletab/treestyletab.dtd +++ b/locale/en-US/treestyletab/treestyletab.dtd @@ -178,7 +178,8 @@ - + + diff --git a/locale/es-ES/treestyletab/treestyletab.dtd b/locale/es-ES/treestyletab/treestyletab.dtd index 8519d53c..8e3de379 100644 --- a/locale/es-ES/treestyletab/treestyletab.dtd +++ b/locale/es-ES/treestyletab/treestyletab.dtd @@ -189,7 +189,8 @@ - + + diff --git a/locale/fr-FR/treestyletab/treestyletab.dtd b/locale/fr-FR/treestyletab/treestyletab.dtd index 5d804872..6f7fad53 100644 --- a/locale/fr-FR/treestyletab/treestyletab.dtd +++ b/locale/fr-FR/treestyletab/treestyletab.dtd @@ -177,7 +177,8 @@ - + + diff --git a/locale/it-IT/treestyletab/treestyletab.dtd b/locale/it-IT/treestyletab/treestyletab.dtd index eb4e6563..a11fdb7b 100644 --- a/locale/it-IT/treestyletab/treestyletab.dtd +++ b/locale/it-IT/treestyletab/treestyletab.dtd @@ -187,7 +187,8 @@ - + + diff --git a/locale/ja/treestyletab/treestyletab.dtd b/locale/ja/treestyletab/treestyletab.dtd index be13147e..45f35344 100644 --- a/locale/ja/treestyletab/treestyletab.dtd +++ b/locale/ja/treestyletab/treestyletab.dtd @@ -177,7 +177,8 @@ - + + diff --git a/locale/pl/treestyletab/treestyletab.dtd b/locale/pl/treestyletab/treestyletab.dtd index 6bece924..a08be901 100644 --- a/locale/pl/treestyletab/treestyletab.dtd +++ b/locale/pl/treestyletab/treestyletab.dtd @@ -182,7 +182,8 @@ - + + diff --git a/locale/ru/treestyletab/treestyletab.dtd b/locale/ru/treestyletab/treestyletab.dtd index 67895fcb..6005e151 100755 --- a/locale/ru/treestyletab/treestyletab.dtd +++ b/locale/ru/treestyletab/treestyletab.dtd @@ -183,7 +183,8 @@ - + + diff --git a/locale/sv-SE/treestyletab/treestyletab.dtd b/locale/sv-SE/treestyletab/treestyletab.dtd index bc7ccd78..b153eb20 100644 --- a/locale/sv-SE/treestyletab/treestyletab.dtd +++ b/locale/sv-SE/treestyletab/treestyletab.dtd @@ -191,7 +191,8 @@ - + + diff --git a/locale/zh-CN/treestyletab/treestyletab.dtd b/locale/zh-CN/treestyletab/treestyletab.dtd index 1b3dd50d..527fcdf6 100644 --- a/locale/zh-CN/treestyletab/treestyletab.dtd +++ b/locale/zh-CN/treestyletab/treestyletab.dtd @@ -190,7 +190,8 @@ - + + diff --git a/locale/zh-TW/treestyletab/treestyletab.dtd b/locale/zh-TW/treestyletab/treestyletab.dtd index 247ed9f5..5102cd58 100644 --- a/locale/zh-TW/treestyletab/treestyletab.dtd +++ b/locale/zh-TW/treestyletab/treestyletab.dtd @@ -178,7 +178,8 @@ - + + diff --git a/modules/autoHide.js b/modules/autoHide.js index e9f8fc01..782d5042 100644 --- a/modules/autoHide.js +++ b/modules/autoHide.js @@ -131,6 +131,14 @@ AutoHideBase.prototype = inherit(AutoHideConstants, { return aValue; }, + get shouldShrink() + { + var toggleKey = 'tabbar.autoHide.mode.toggle'; + if (this.window.fullScreen) + toggleKey += '.fullscreen'; + return utils.getTreePref(toggleKey) == this.kMODE_SHRINK; + }, + get lastNormalMode() { var lastMode = this.treeStyleTab.getWindowValue(this.kMODE + '-normal'); @@ -810,6 +818,9 @@ AutoHideBrowser.prototype = inherit(AutoHideBase.prototype, { aNode.setAttribute('checked', true); else aNode.removeAttribute('checked'); + + var labelAttribute = this.shouldShrink ? 'label-shrink' : 'label-hide' ; + aNode.setAttribute('label', aNode.getAttribute(labelAttribute)); }, // show/hide tabbar