summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/resources/shared/js/cr/ui/table.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/resources/shared/js/cr/ui/table.js b/chrome/browser/resources/shared/js/cr/ui/table.js
index 5c93b4e..a4c022d 100644
--- a/chrome/browser/resources/shared/js/cr/ui/table.js
+++ b/chrome/browser/resources/shared/js/cr/ui/table.js
@@ -273,6 +273,8 @@ cr.define('cr.ui', function() {
} else {
this.list_.dataModel.sort(cm.getId(i), 'asc');
}
+ if (this.selectionModel.selectedIndex == -1)
+ this.list_.scrollTop = 0;
},
/**