Weaveによって「タブの一覧」ポップアップの内容が改変されている時にインデントが崩れる問題を修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6628 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
db5506a02a
commit
9357c2d2b8
@ -1209,6 +1209,18 @@ catch(e) {
|
||||
if (!this.getTreePref('enableSubtreeIndent.allTabsPopup')) return;
|
||||
|
||||
var items = Array.slice(aEvent.originalTarget.childNodes);
|
||||
var firstItemIndex = 0;
|
||||
// ignore menu items inserted by Weave
|
||||
if (items.some(function(aItem, aIndex) {
|
||||
if ((aItem.getAttribute('anonid') || aItem.id) == 'sync-tabs-sep') {
|
||||
firstItemIndex = aIndex + 1;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
})) {
|
||||
items = items.slice(firstItemIndex);
|
||||
}
|
||||
|
||||
var b = this.getTabBrowserFromChild(aEvent.originalTarget) || gBrowser;
|
||||
this.getTabsArray(b).forEach(function(aTab, aIndex) {
|
||||
items[aIndex].style.paddingLeft = aTab.getAttribute(this.kNEST)+'em';
|
||||
|
Loading…
x
Reference in New Issue
Block a user