Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js

Issue 2627373002: MD Settings: Save and restore scroll position in iron-list (Closed)
Patch Set: Nits Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js
diff --git a/chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js b/chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js
index 50ddb23928b645a73ec218eab8c71c5940345fea..d5fbf19ca126eb8ff66059a5b6d30ab536a7513c 100644
--- a/chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js
+++ b/chrome/browser/resources/settings/bluetooth_page/bluetooth_subpage.js
@@ -173,11 +173,12 @@ Polymer({
/** @private */
deviceListChanged_: function() {
- var devices = this.$.devices;
+ this.saveScroll(this.$.devices);
this.pairedDeviceList_ = this.deviceList_.filter(function(device) {
return !!device.paired || !!device.connecting;
});
this.updateScrollableContents();
+ this.restoreScroll(this.$.devices);
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698