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

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

Issue 1303363004: MD Downloads: remove per-item scrollbarWidth handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: thank you, ojan! Created 5 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
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/manager.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_downloads/item.js
diff --git a/chrome/browser/resources/md_downloads/item.js b/chrome/browser/resources/md_downloads/item.js
index e16af266631c8b44515938852453fbe2cf0e93f4..603b1cd7a42cae7481493d2d10de4726e28462b8 100644
--- a/chrome/browser/resources/md_downloads/item.js
+++ b/chrome/browser/resources/md_downloads/item.js
@@ -34,12 +34,6 @@ cr.define('downloads', function() {
},
},
- scrollbarWidth: {
- observer: 'onScrollbarWidthChange_',
- type: Number,
- value: 0,
- },
-
completelyOnDisk_: {
computed: 'computeCompletelyOnDisk_(' +
'data_.state, data_.file_externally_removed)',
@@ -327,20 +321,6 @@ cr.define('downloads', function() {
},
/** @private */
- onScrollbarWidthChange_: function() {
- if (!this.$)
- return;
-
- var endCap = this.$['end-cap'];
- endCap.style.flexBasis = '';
-
- if (this.scrollbarWidth) {
- var basis = parseInt(getComputedStyle(endCap).flexBasis, 10);
- endCap.style.flexBasis = basis - this.scrollbarWidth + 'px';
- }
- },
-
- /** @private */
onShowClick_: function() {
this.actionService_.show(this.data_.id);
},
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/manager.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698