summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorserya@google.com <serya@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-27 12:19:02 +0000
committerserya@google.com <serya@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-27 12:19:02 +0000
commitacb4ac8a80cd5392ced1c1c4bc34e6f2f8da3751 (patch)
tree5623243a08f7b37f9065f92c555a4d3fdcaed2c7
parent909ace152b55c22937973cd3cf45380375e8eb4c (diff)
downloadchromium_src-acb4ac8a80cd5392ced1c1c4bc34e6f2f8da3751.zip
chromium_src-acb4ac8a80cd5392ced1c1c4bc34e6f2f8da3751.tar.gz
chromium_src-acb4ac8a80cd5392ced1c1c4bc34e6f2f8da3751.tar.bz2
Merge 143273 - Scrolling list to top when sorting change (on Chrome OS).
BUG=127257 TEST=Manual test. Review URL: https://chromiumcodereview.appspot.com/10582015 TBR=serya@chromium.org Review URL: https://chromiumcodereview.appspot.com/10702003 git-svn-id: svn://svn.chromium.org/chrome/branches/1180/src@144441 0039d316-1c4b-4281-b951-d872f2087c98
-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;
},
/**