Firefox 3.1で縦置きタブバーが溢れた時にスタイルが更新されない問題を修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3757 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-03-04 19:41:05 +00:00
parent 00746ce1d2
commit 42b8258d85
4 changed files with 42 additions and 23 deletions

View File

@ -1,16 +1,18 @@
content treestyletab jar:chrome/treestyletab.jar!/content/treestyletab/
overlay chrome://browser/content/browser.xul chrome://treestyletab/content/treestyletab.xul
overlay chrome://browser/content/bookmarks/bookmarksPanel.xul chrome://treestyletab/content/bookmarksOverlay.xul
overlay chrome://multipletab/content/config.xul chrome://treestyletab/content/multipletabConfigOverlay.xul
locale treestyletab en-US jar:chrome/treestyletab.jar!/locale/en-US/treestyletab/
locale treestyletab ja jar:chrome/treestyletab.jar!/locale/ja/treestyletab/
locale treestyletab it-IT jar:chrome/treestyletab.jar!/locale/it-IT/treestyletab/
locale treestyletab zh-CN jar:chrome/treestyletab.jar!/locale/zh-CN/treestyletab/
locale treestyletab es-ES jar:chrome/treestyletab.jar!/locale/es-ES/treestyletab/
locale treestyletab de-DE jar:chrome/treestyletab.jar!/locale/de-DE/treestyletab/
locale treestyletab zh-TW jar:chrome/treestyletab.jar!/locale/zh-TW/treestyletab/
locale treestyletab ru-RU jar:chrome/treestyletab.jar!/locale/ru-RU/treestyletab/
skin treestyletab classic/1.0 jar:chrome/treestyletab.jar!/skin/classic/treestyletab/
content treestyletab jar:chrome/treestyletab.jar!/content/treestyletab/
overlay chrome://browser/content/browser.xul chrome://treestyletab/content/treestyletab.xul
overlay chrome://browser/content/bookmarks/bookmarksPanel.xul chrome://treestyletab/content/bookmarksOverlay.xul
overlay chrome://multipletab/content/config.xul chrome://treestyletab/content/multipletabConfigOverlay.xul
style chrome://browser/content/browser.xul chrome://treestyletab/content/treestyletab-3.1.css appversion>=3.1b3pre
locale treestyletab en-US jar:chrome/treestyletab.jar!/locale/en-US/treestyletab/
locale treestyletab ja jar:chrome/treestyletab.jar!/locale/ja/treestyletab/
locale treestyletab it-IT jar:chrome/treestyletab.jar!/locale/it-IT/treestyletab/
locale treestyletab zh-CN jar:chrome/treestyletab.jar!/locale/zh-CN/treestyletab/
locale treestyletab es-ES jar:chrome/treestyletab.jar!/locale/es-ES/treestyletab/
locale treestyletab de-DE jar:chrome/treestyletab.jar!/locale/de-DE/treestyletab/
locale treestyletab zh-TW jar:chrome/treestyletab.jar!/locale/zh-TW/treestyletab/
locale treestyletab ru-RU jar:chrome/treestyletab.jar!/locale/ru-RU/treestyletab/
skin treestyletab classic/1.0 jar:chrome/treestyletab.jar!/skin/classic/treestyletab/

View File

@ -0,0 +1,6 @@
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");
tabbrowser[treestyletab-mode="vertical"] .tabs-container > .tabbrowser-arrowscrollbox {
-moz-binding: url("chrome://treestyletab/content/treestyletab.xml#tabbrowser-arrowscrollbox");
}

View File

@ -55,17 +55,11 @@ tabbrowser[treestyletab-mode="vertical"] tabs[flowing] > * .tabs-frame /* Tab Mi
overflow-y: auto !important;
}
tabbrowser[treestyletab-mode="vertical"] .tabs-stack > * + * > hbox,
tabbrowser[treestyletab-mode="vertical"] .tabs-stack > *:first-child + * > hbox, /* Firefox 3.0 (not 3.1) */
tabbrowser[treestyletab-mode="vertical"] tabs[flowing] > * .tabs-frame /* Tab Mix Plus */ {
-moz-box-flex: 1 !important;
}
/*
tabbrowser[treestyletab-mode="vertical"] .tabbrowser-arrowscrollbox > scrollbox > .scrollbox-innerbox {
-moz-box-flex: 0 !important;
}
*/
tabbrowser[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted="true"] .tabbrowser-arrowscrollbox > scrollbox,
tabbrowser[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted="true"] .tabs-frame /* Tab Mix Plus */ {
direction: rtl !important;

View File

@ -12,4 +12,21 @@
</content>
</binding>
<binding id="tabbrowser-arrowscrollbox"
extends="chrome://browser/content/tabbrowser.xml#tabbrowser-arrowscrollbox">
<handlers>
<handler event="underflow"><![CDATA[
if (event.detail != 0) return; // Ignore horizontal events
var tabs = document.getBindingParent(this);
tabs.removeAttribute("overflow");
]]></handler>
<handler event="overflow"><![CDATA[
if (event.detail != 0) return; // Ignore horizontal events
var tabs = document.getBindingParent(this);
tabs.setAttribute("overflow", "true");
this.scrollBoxObject.ensureElementIsVisible(tabs.selectedItem);
]]></handler>
</handlers>
</binding>
</bindings>