forked from mirrors/gecko-dev
- venkman only -
reset childIndex and parentRecord on a removed tree item
This commit is contained in:
parent
c81f507039
commit
1521805007
2 changed files with 4 additions and 0 deletions
|
|
@ -536,6 +536,8 @@ function tovr_remchild (index)
|
|||
|
||||
var fpDelta = -this.childData[index].visualFootprint;
|
||||
var changeStart = this.childData[index].calculateVisualRow();
|
||||
this.childData[index].childIndex = -1;
|
||||
delete this.childData[index].parentRecord;
|
||||
arrayRemoveAt (this.childData, index);
|
||||
this.invalidateCache();
|
||||
this.onVisualFootprintChanged (changeStart, fpDelta);
|
||||
|
|
|
|||
|
|
@ -536,6 +536,8 @@ function tovr_remchild (index)
|
|||
|
||||
var fpDelta = -this.childData[index].visualFootprint;
|
||||
var changeStart = this.childData[index].calculateVisualRow();
|
||||
this.childData[index].childIndex = -1;
|
||||
delete this.childData[index].parentRecord;
|
||||
arrayRemoveAt (this.childData, index);
|
||||
this.invalidateCache();
|
||||
this.onVisualFootprintChanged (changeStart, fpDelta);
|
||||
|
|
|
|||
Loading…
Reference in a new issue