- venkman only -

reset childIndex and parentRecord on a removed tree item
This commit is contained in:
rginda%netscape.com 2001-09-05 01:30:59 +00:00
parent c81f507039
commit 1521805007
2 changed files with 4 additions and 0 deletions

View file

@ -536,6 +536,8 @@ function tovr_remchild (index)
var fpDelta = -this.childData[index].visualFootprint; var fpDelta = -this.childData[index].visualFootprint;
var changeStart = this.childData[index].calculateVisualRow(); var changeStart = this.childData[index].calculateVisualRow();
this.childData[index].childIndex = -1;
delete this.childData[index].parentRecord;
arrayRemoveAt (this.childData, index); arrayRemoveAt (this.childData, index);
this.invalidateCache(); this.invalidateCache();
this.onVisualFootprintChanged (changeStart, fpDelta); this.onVisualFootprintChanged (changeStart, fpDelta);

View file

@ -536,6 +536,8 @@ function tovr_remchild (index)
var fpDelta = -this.childData[index].visualFootprint; var fpDelta = -this.childData[index].visualFootprint;
var changeStart = this.childData[index].calculateVisualRow(); var changeStart = this.childData[index].calculateVisualRow();
this.childData[index].childIndex = -1;
delete this.childData[index].parentRecord;
arrayRemoveAt (this.childData, index); arrayRemoveAt (this.childData, index);
this.invalidateCache(); this.invalidateCache();
this.onVisualFootprintChanged (changeStart, fpDelta); this.onVisualFootprintChanged (changeStart, fpDelta);