From aa3a6a859e21d01e9d0ffeb392dfc5aa14ae82fe Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Mon, 12 Sep 2016 01:11:21 +0900 Subject: [PATCH] Update styles of "tabs in titlebar" correctly for non-top tab bar #1188 --- content/treestyletab/windowHelper.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index f3e193ac..dd0725b1 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -47,8 +47,13 @@ var TreeStyleTabWindowHelper = { TabsInTitlebar._update = function(...aArgs) { // See: https://dxr.mozilla.org/mozilla-central/rev/dbe4b47941c7b3d6298a0ead5e40dd828096c808/browser/base/content/browser-tabsintitlebar.js#104 let result = this.__treestyletab__update(...aArgs); - if (gBrowser.treeStyleTab && // possibly not available while the startup process - gBrowser.treeStyleTab.position == 'top') { + if ( + gBrowser.treeStyleTab && // possibly not available while the startup process + ( + gBrowser.treeStyleTab.position != 'top' || + !gBrowser.treeStyleTab.isFixed + ) + ) { let heightOfItemsInTitlebar = 0; if (AppConstants.platform != 'macosx') { let menubar = document.getElementById('toolbar-menubar');