「自動で隠す」が有効な時、タブバーの幅を変えられなくなっていたのを修正(いつからかのregression)

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4170 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-04-21 07:30:05 +00:00
parent a2f74e4e57
commit 9676807946
2 changed files with 6 additions and 6 deletions

View File

@ -102,7 +102,6 @@ tabbrowser[treestyletab-mode="multirow"] .tabbrowser-tab {
*/
tabbrowser[treestyletab-tabbar-autohide][treestyletab-tabbar-transparent] .tabs-stack > *:first-child > :not(html|canvas),
tabbrowser[treestyletab-tabbar-resizing]:not([treestyletab-tabbar-transparent]) .tabs-stack > *:first-child > html|canvas,
tabbrowser[treestyletab-tabbar-resizing] .tabs-stack > *:first-child > html|canvas {
display: none !important;
}

View File

@ -727,6 +727,7 @@ TreeStyleTabBrowser.prototype = {
if (!splitter) {
splitter = document.createElement('splitter');
splitter.setAttribute('class', this.kSPLITTER);
splitter.addEventListener('mousedown', this, true);
splitter.setAttribute('onmouseup', 'TreeStyleTabService.onTabbarResized(event);');
splitter.setAttribute('state', 'open');
splitter.appendChild(document.createElement('grippy'));
@ -1196,11 +1197,11 @@ TreeStyleTabBrowser.prototype = {
}
if (
!this.tabbarResizing &&
aEvent.originalTarget &&
(
aEvent.originalTarget.getAttribute('class') == this.kSPLITTER ||
aEvent.originalTarget.parentNode.getAttribute('class') == this.kSPLITTER
)
this.evaluateXPath(
'ancestor-or-self::*[@class="'+this.kSPLITTER+'"]',
aEvent.originalTaret || aEvent.target,
XPathResult.BOOLEAN_TYPE
).booleanValue
) {
this.tabbarResizing = true;
this.clearTabbarCanvas();