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

Unified Diff: chrome/browser/resources/md_downloads/manager.js

Issue 2344893006: MD Downloads: add "waterfall" shadow (shows when the list is scrolled) (Closed)
Patch Set: Created 4 years, 3 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/md_downloads/manager.js
diff --git a/chrome/browser/resources/md_downloads/manager.js b/chrome/browser/resources/md_downloads/manager.js
index 2c4c659d5afda8bcd3cfdc1ac4bbf24ff98bed46..e66c813a37ab7f213d191117ecb00c2e9ff4802d 100644
--- a/chrome/browser/resources/md_downloads/manager.js
+++ b/chrome/browser/resources/md_downloads/manager.js
@@ -12,6 +12,12 @@ cr.define('downloads', function() {
type: Boolean,
},
+ hasShadow_: {
+ type: Boolean,
+ value: false,
+ reflectToAttribute: true,
+ },
+
items_: {
type: Array,
value: function() { return []; },
@@ -111,6 +117,7 @@ cr.define('downloads', function() {
// Approaching the end of the scrollback. Attempt to load more items.
downloads.ActionService.getInstance().loadMore();
}
+ this.hasShadow_ = list.scrollTop > 0;
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698