Detect tab from drag events more correctly
This commit is contained in:
parent
e8941963d4
commit
b417c45425
@ -578,6 +578,14 @@ var TreeStyleTabWindowHelper = {
|
|||||||
));
|
));
|
||||||
}, 'TreeStyleTabService.getTabBrowserFromChild');
|
}, 'TreeStyleTabService.getTabBrowserFromChild');
|
||||||
|
|
||||||
|
TreeStyleTabUtils.doPatching(b.tabContainer._getDragTargetTab, 'b.tabContainer._getDragTargetTab', function(aName, aSource) {
|
||||||
|
return eval(aName+' = '+aSource.replace(
|
||||||
|
/\.screenX/g, '[this.treeStyleTab.screenPositionProp]'
|
||||||
|
).replace(
|
||||||
|
/\.width/g, '[this.treeStyleTab.sizeProp]'
|
||||||
|
));
|
||||||
|
}, 'treeStyleTab');
|
||||||
|
|
||||||
TreeStyleTabUtils.doPatching(b.tabContainer._getDropIndex, 'b.tabContainer._getDropIndex', function(aName, aSource) {
|
TreeStyleTabUtils.doPatching(b.tabContainer._getDropIndex, 'b.tabContainer._getDropIndex', function(aName, aSource) {
|
||||||
return eval(aName+' = '+aSource.replace(
|
return eval(aName+' = '+aSource.replace(
|
||||||
/\.screenX/g, '[this.treeStyleTab.screenPositionProp]'
|
/\.screenX/g, '[this.treeStyleTab.screenPositionProp]'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user