Merge pull request #2017 from jberry-suse/web-origin-manager-scroll

web/origin-manager: scroll to value after selecting.
This commit is contained in:
Jimmy Berry 2019-05-13 18:04:48 -05:00 committed by GitHub
commit 2657cadc42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,9 +99,11 @@ function table_selection_set(table, value) {
if (table.getSelectedRows()[0].getIndex() != value) {
table.getSelectedRows()[0].deselect();
table.selectRow(value);
setTimeout(function(){ table.scrollToRow(value, 'middle', false) }, 500);
}
} else {
table.selectRow(value);
setTimeout(function(){ table.scrollToRow(value, 'middle', false) }, 500);
}
}