From 9676807946b758a82a374c5a4eaa06ef78862e70 Mon Sep 17 00:00:00 2001 From: piro Date: Tue, 21 Apr 2009 07:30:05 +0000 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=E8=87=AA=E5=8B=95=E3=81=A7=E9=9A=A0?= =?UTF-8?q?=E3=81=99=E3=80=8D=E3=81=8C=E6=9C=89=E5=8A=B9=E3=81=AA=E6=99=82?= =?UTF-8?q?=E3=80=81=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=81=AE=E5=B9=85?= =?UTF-8?q?=E3=82=92=E5=A4=89=E3=81=88=E3=82=89=E3=82=8C=E3=81=AA=E3=81=8F?= =?UTF-8?q?=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=88=E3=81=84=E3=81=A4=E3=81=8B=E3=82=89?= =?UTF-8?q?=E3=81=8B=E3=81=AEregression=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4170 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.css | 1 - content/treestyletab/treestyletabbrowser.js | 11 ++++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/content/treestyletab/treestyletab.css b/content/treestyletab/treestyletab.css index 43044bff..6455d01a 100644 --- a/content/treestyletab/treestyletab.css +++ b/content/treestyletab/treestyletab.css @@ -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; } diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 801370ce..1cc58d79 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -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();