This commit is contained in:
Piro / SHIMODA Hiroshi 2011-05-28 09:18:44 +09:00
parent b80e90091f
commit 7b7c7ba5e8

View File

@ -840,15 +840,9 @@ catch(e) {
onDragLeave : function TabbarDND_onDragLeave(aEvent) onDragLeave : function TabbarDND_onDragLeave(aEvent)
{ {
var sv = this.treeStyleTab; this.clearDropPosition();
var b = this.browser;
var w = this.window;
var tabbarFromEvent = sv.getTabbarFromChild(aEvent.relatedTarget); this.window.clearTimeout(this.mAutoExpandTimer);
if (!tabbarFromEvent)
this.clearDropPosition();
w.clearTimeout(this.mAutoExpandTimer);
this.mAutoExpandTimer = null; this.mAutoExpandTimer = null;
}, },
@ -975,12 +969,7 @@ try{
} }
} }
if (!info.target || info.target != sv.evaluateXPath( this.clearDropPosition();
'child::xul:tab[@'+sv.kDROP_POSITION+']',
b.mTabContainer,
Ci.nsIDOMXPathResult.FIRST_ORDERED_NODE_TYPE
).singleNodeValue)
this.clearDropPosition();
if ( if (
!info.canDrop || !info.canDrop ||