зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
6cd7127c27
Коммит
9ffb129a1f
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче