TMPで現在のタブの次の位置に新しいタブを開く設定のとき、ブックマーク等から開いたタブが1つずれた位置に開かれていた
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5029 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
e183977623
commit
c9603addd0
@ -458,13 +458,16 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() {
|
||||
<![CDATA[
|
||||
(function() {
|
||||
var tabs = this.treeStyleTab.getDescendantTabs(this.mCurrentTab);
|
||||
var index = !tabs.length ?
|
||||
($&) :
|
||||
this.treeStyleTab.getPref("extensions.tabmix.openTabNextInverse") ?
|
||||
if (tabs.length) {
|
||||
var index = this.treeStyleTab.getPref("extensions.tabmix.openTabNextInverse") ?
|
||||
tabs[tabs.length - 1]._tPos :
|
||||
this.mCurrentTab._tPos ;
|
||||
if (index < aTab._tPos) index++;
|
||||
return index;
|
||||
}
|
||||
else {
|
||||
return ($&);
|
||||
}
|
||||
}).call(this)
|
||||
]]>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user