From 8a6bcc8ac6c2f67aec0651200856f27b66d99f31 Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 3 Sep 2009 08:24:22 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=9D=E3=83=83=E3=83=97=E3=82=A2=E3=83=83?= =?UTF-8?q?=E3=83=97=E3=83=A1=E3=83=8B=E3=83=A5=E3=83=BC=E4=B8=8A=E3=81=A7?= =?UTF-8?q?=E3=81=AE=E3=83=89=E3=83=A9=E3=83=83=E3=82=B0=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E3=81=A7=E3=81=AF=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=81=AE?= =?UTF-8?q?=E3=83=89=E3=83=A9=E3=83=83=E3=82=B0=E3=82=92=E9=96=8B=E5=A7=8B?= =?UTF-8?q?=E3=81=97=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= 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@5068 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- .../treestyletab/treestyletabbrowser_tabbarDNDObserver.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/content/treestyletab/treestyletabbrowser_tabbarDNDObserver.js b/content/treestyletab/treestyletabbrowser_tabbarDNDObserver.js index 41022618..edd9ebb3 100644 --- a/content/treestyletab/treestyletabbrowser_tabbarDNDObserver.js +++ b/content/treestyletab/treestyletabbrowser_tabbarDNDObserver.js @@ -29,6 +29,14 @@ TreeStyleTabBrowserTabbarDNDObserver.prototype = { canDragTabbar : function(aEvent) { var sv = this.mOwner; + + if (sv.evaluateXPath( + 'ancestor::*[local-name()="menupopup" or local-name()="popup" or local-name()="panel"]', + aEvent.originalTarget, + XPathResult.BOOLEAN_TYPE + ).booleanValue) + return false; + var tab = sv.getTabFromEvent(aEvent); var tabbar = sv.getTabbarFromEvent(aEvent); return (