From 26adbf093d8250a321a4342852cd4c17e2c34863 Mon Sep 17 00:00:00 2001 From: piro Date: Sat, 26 Jun 2010 18:00:52 +0000 Subject: [PATCH] =?UTF-8?q?pinned=E3=81=AA=E3=82=BF=E3=83=96=E3=82=92?= =?UTF-8?q?=E3=83=89=E3=83=A9=E3=83=83=E3=82=B0=E3=81=99=E3=82=8B=E3=81=A8?= =?UTF-8?q?=E3=81=99=E3=81=90=E3=81=AB=E3=82=A6=E3=82=A3=E3=83=B3=E3=83=89?= =?UTF-8?q?=E3=82=A6=E3=81=AB=E5=88=87=E3=82=8A=E9=9B=A2=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=81=A6=E3=81=97=E3=81=BE=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F?= 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@6757 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index e85f56b8..1b35cc12 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -877,6 +877,7 @@ catch(e) { { var b = this.getTabBrowserFromChild(aEvent.currentTarget); var tabbar = b.mTabContainer; + var strip = b.treeStyleTab.tabStrip; var sv = b.treeStyleTab; var dt = aEvent.dataTransfer; @@ -905,8 +906,8 @@ catch(e) { return; // ignore drop near the tab bar - var box = tabbar.boxObject; - var ignoreArea = Math.max(16, parseInt(tabbar.firstChild.boxObject.height / 2)); + var box = strip.boxObject; + var ignoreArea = Math.max(16, parseInt(this.getFirstNormalTab(b).boxObject.height / 2)); x = box.screenX - (sv.isVertical ? ignoreArea : 0 ); y = box.screenY - ignoreArea; w = box.width + (sv.isVertical ? ignoreArea + ignoreArea : 0 );