diff --git a/content/treestyletab/treestyletab.css b/content/treestyletab/treestyletab.css index db377475..2e467613 100644 --- a/content/treestyletab/treestyletab.css +++ b/content/treestyletab/treestyletab.css @@ -57,13 +57,6 @@ tabbrowser[treestyletab-mode="vertical"] .tabbrowser-arrowscrollbox > scrollbox tabbrowser[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted="true"] .tabbrowser-arrowscrollbox > scrollbox { direction: rtl !important; -} - -tabbrowser[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted="true"] .tabbrowser-arrowscrollbox > scrollbox > .scrollbox-innerbox { - direction: ltr !important; -} - -tabbrowser[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted="true"] .tabbrowser-tabs[treestyletab-last-focus] .tabbrowser-arrowscrollbox > scrollbox { /* if there is scrollbar, closeboxes of tabs cannot be clicked because they are "under the rightside scrollbar" even if it is moved to leftside by the above rule. This seems a bug. Following rules move @@ -73,6 +66,10 @@ tabbrowser[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted= padding-right: 1em !important; } +tabbrowser[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted="true"] .tabbrowser-arrowscrollbox > scrollbox > .scrollbox-innerbox { + direction: ltr !important; +} + tabbrowser[treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] .tabbrowser-tab .tab-image-middle { diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 30a54a92..f02a2207 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -14,7 +14,6 @@ var TreeStyleTabService = { kALLOW_COLLAPSE : 'treestyletab-allow-subtree-collapse', kSTYLE : 'treestyletab-style', kFIRSTTAB_BORDER : 'treestyletab-firsttab-border', - kLAST_FOCUS : 'treestyletab-last-focus', kTWISTY : 'treestyletab-twisty', kTWISTY_CONTAINER : 'treestyletab-twisty-container', @@ -753,6 +752,16 @@ catch(e) { delete i; delete maxi; delete tabs; + + /* To move up content area on the tab bar, switch tab. + If we don't do it, a gray space appears on the content area + by negative margin of it. */ + if (this.getTreePref('tabbar.position') == 'left' && + this.getTreePref('tabbar.invertScrollbar')) { + aTabBrowser.removeTab( + aTabBrowser.selectedTab = aTabBrowser.addTab('about:blank') + ); + } }, initTab : function(aTab, aTabBrowser) @@ -1145,7 +1154,6 @@ catch(e) { return; case 'select': - aEvent.currentTarget.setAttribute(this.kLAST_FOCUS, Date.now()); this.onTabSelect(aEvent); return;