Bug 234973 - Make selected row visible after removing/editing entries in password manager. r=Dolske

Added a call to
'treeBoxObject.ensureRowIsVisible(signonsTree.view.selection.currentIndex)' in
'signonReloadDisplay()' to make sure the selection is visible regardless of the
operation which caused a call to signonReloadDisplay().

MozReview-Commit-ID: EztJ4sZcofi

--HG--
extra : rebase_source : 3fa8fd3f7bb22862607b350415dd738a8383871f
This commit is contained in:
Ashhar Hasan 2017-03-13 03:26:58 +05:30
Родитель 6cd7127c27
Коммит 9ffb129a1f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -51,6 +51,7 @@ let signonReloadDisplay = {
if (filterField && filterField.value != "") {
FilterPasswords();
}
signonsTree.treeBoxObject.ensureRowIsVisible(signonsTree.view.selection.currentIndex);
break;
}
Services.obs.notifyObservers(null, "passwordmgr-dialog-updated");
@ -389,7 +390,6 @@ function DeleteSignon() {
// update selection
let nextSelection = (selections[0] < table.length) ? selections[0] : table.length - 1;
tree.view.selection.select(nextSelection);
tree.treeBoxObject.ensureRowIsVisible(nextSelection);
} else {
// disable buttons
removeButton.setAttribute("disabled", "true");