pinnedなタブをドラッグするとすぐにウィンドウに切り離されてしまっていた
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6757 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
ab7f80ccf7
commit
26adbf093d
@ -877,6 +877,7 @@ catch(e) {
|
|||||||
{
|
{
|
||||||
var b = this.getTabBrowserFromChild(aEvent.currentTarget);
|
var b = this.getTabBrowserFromChild(aEvent.currentTarget);
|
||||||
var tabbar = b.mTabContainer;
|
var tabbar = b.mTabContainer;
|
||||||
|
var strip = b.treeStyleTab.tabStrip;
|
||||||
var sv = b.treeStyleTab;
|
var sv = b.treeStyleTab;
|
||||||
var dt = aEvent.dataTransfer;
|
var dt = aEvent.dataTransfer;
|
||||||
|
|
||||||
@ -905,8 +906,8 @@ catch(e) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// ignore drop near the tab bar
|
// ignore drop near the tab bar
|
||||||
var box = tabbar.boxObject;
|
var box = strip.boxObject;
|
||||||
var ignoreArea = Math.max(16, parseInt(tabbar.firstChild.boxObject.height / 2));
|
var ignoreArea = Math.max(16, parseInt(this.getFirstNormalTab(b).boxObject.height / 2));
|
||||||
x = box.screenX - (sv.isVertical ? ignoreArea : 0 );
|
x = box.screenX - (sv.isVertical ? ignoreArea : 0 );
|
||||||
y = box.screenY - ignoreArea;
|
y = box.screenY - ignoreArea;
|
||||||
w = box.width + (sv.isVertical ? ignoreArea + ignoreArea : 0 );
|
w = box.width + (sv.isVertical ? ignoreArea + ignoreArea : 0 );
|
||||||
|
Loading…
Reference in New Issue
Block a user