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

Unified Diff: chrome/browser/resources/md_downloads/crisper.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/crisper.js
diff --git a/chrome/browser/resources/md_downloads/crisper.js b/chrome/browser/resources/md_downloads/crisper.js
index 41559aeb1c7a415b6e899042ab055890ab25dae6..a2ae0bac82c425a4091d0da10a9cffcc907a4d34 100644
--- a/chrome/browser/resources/md_downloads/crisper.js
+++ b/chrome/browser/resources/md_downloads/crisper.js
@@ -6867,6 +6867,11 @@ cr.define('downloads', function() {
observer: 'hasDownloadsChanged_',
type: Boolean
},
+ hasShadow_: {
+ type: Boolean,
+ value: false,
+ reflectToAttribute: true
+ },
items_: {
type: Array,
value: function() {
@@ -6931,6 +6936,7 @@ cr.define('downloads', function() {
if (list.scrollHeight - list.scrollTop - list.offsetHeight <= 100) {
downloads.ActionService.getInstance().loadMore();
}
+ this.hasShadow_ = list.scrollTop > 0;
},
onLoad_: function() {
cr.ui.decorate('command', cr.ui.Command);
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/manager.css » ('j') | chrome/browser/resources/md_downloads/manager.css » ('J')

Powered by Google App Engine
This is Rietveld 408576698