Bug 476994 - issues with about:sessionrestore treeview implementation. r=neil

This commit is contained in:
Simon Bünzli 2009-02-22 09:49:45 +01:00
parent 819312ff7d
commit fc3b583de2

View File

@ -274,8 +274,10 @@ var treeView = {
hasNextSibling: function(idx, after) {
var thisLevel = this.getLevel(idx);
for (var t = idx + 1; t < gTreeData.length && this.getLevel(t) > thisLevel; t++);
return thisLevel == this.getLevel(t);
for (var t = after + 1; t < gTreeData.length; t++)
if (this.getLevel(t) <= thisLevel)
return this.getLevel(t) == thisLevel;
return false;
},
toggleOpenState: function(idx) {
@ -298,6 +300,7 @@ var treeView = {
this.treeBox.rowCountChanged(idx + 1, toinsert.length);
}
item.open = !item.open;
this.treeBox.invalidateRow(idx);
},
getCellProperties: function(idx, column, prop) {