зеркало из https://github.com/mozilla/pjs.git
Bug 479931. The index of the child content in its container needs to be adjusted to determine its index in the tree rows. r=neil
--HG-- extra : rebase_source : 30711fef343b77ffccdfcf45422eac83bcf6eece
This commit is contained in:
Родитель
b3aedc7467
Коммит
c1b5abd259
|
@ -1049,9 +1049,11 @@ nsTreeContentView::ContentInserted(nsIDocument *aDocument,
|
|||
}
|
||||
else if (childTag == nsGkAtoms::option) {
|
||||
PRInt32 parentIndex = FindContent(aContainer);
|
||||
PRInt32 count = InsertRow(parentIndex, aIndexInContainer, aChild);
|
||||
PRInt32 index = 0;
|
||||
GetIndexInSubtree(aContainer, aChild, &index);
|
||||
PRInt32 count = InsertRow(parentIndex, index, aChild);
|
||||
if (mBoxObject)
|
||||
mBoxObject->RowCountChanged(parentIndex + aIndexInContainer + 1, count);
|
||||
mBoxObject->RowCountChanged(parentIndex + index + 1, count);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче