* タブにドロップした時は常に最後の子として追加するようにした
* タブの後に最後の子タブをドロップした場合、タブの次の兄弟とするようにした git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3766 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
8eab7ccd9e
commit
58d12d788c
@ -2175,9 +2175,9 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
switch (info.position)
|
switch (info.position)
|
||||||
{
|
{
|
||||||
case this.kDROP_ON:
|
case this.kDROP_ON:
|
||||||
info.action = this.kACTION_STAY | this.kACTION_ATTACH;
|
info.action = this.kACTION_MOVE | this.kACTION_ATTACH;
|
||||||
info.parent = tab;
|
info.parent = tab;
|
||||||
info.insertBefore = this.getNextVisibleTab(tab);
|
info.insertBefore = this.getNextSiblingTab(tab);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case this.kDROP_BEFORE:
|
case this.kDROP_BEFORE:
|
||||||
@ -2231,6 +2231,15 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
info.parent = (targetNest < nextLevel) ? tab : this.getParentTab(tab) ;
|
info.parent = (targetNest < nextLevel) ? tab : this.getParentTab(tab) ;
|
||||||
info.action = this.kACTION_MOVE | (info.parent ? this.kACTION_ATTACH : this.kACTION_PART );
|
info.action = this.kACTION_MOVE | (info.parent ? this.kACTION_ATTACH : this.kACTION_PART );
|
||||||
info.insertBefore = nextTab;
|
info.insertBefore = nextTab;
|
||||||
|
/*
|
||||||
|
[TARGET ] <EFBFBD>«attach dragged tab to the parent of the target as its next sibling
|
||||||
|
[DRAGGED]
|
||||||
|
*/
|
||||||
|
if (aSourceTab == nextTab && this.getDescendantTabs(info.parent).length == 1) {
|
||||||
|
info.action = this.kACTION_MOVE | this.kACTION_ATTACH;
|
||||||
|
info.parent = this.getParentTab(tab);
|
||||||
|
info.insertBefore = this.getNextTab(nextTab);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user