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

Unified Diff: chrome/browser/resources/md_bookmarks/app.js

Issue 2823053003: [MD Bookmarks] Remove the bookmarks-sidebar element. (Closed)
Patch Set: rebase, address comments Created 3 years, 8 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_bookmarks/app.js
diff --git a/chrome/browser/resources/md_bookmarks/app.js b/chrome/browser/resources/md_bookmarks/app.js
index ed59f5e4024dd59f92311b4abbaa0e0092f2b278..a9723f10fae31797f346ba62140e921992fa2f1b 100644
--- a/chrome/browser/resources/md_bookmarks/app.js
+++ b/chrome/browser/resources/md_bookmarks/app.js
@@ -86,7 +86,8 @@ Polymer({
splitterTarget.style.width =
window.localStorage[LOCAL_STORAGE_TREE_WIDTH_KEY];
}
- this.sidebarWidth_ = splitterTarget.getComputedStyleValue('width');
+ this.sidebarWidth_ =
+ /** @type {string} */ (getComputedStyle(splitterTarget).width);
splitter.addEventListener('resize', function(e) {
window.localStorage[LOCAL_STORAGE_TREE_WIDTH_KEY] =
@@ -100,7 +101,8 @@ Polymer({
/** @private */
updateSidebarWidth_: function() {
- this.sidebarWidth_ = this.$.sidebar.getComputedStyleValue('width');
+ this.sidebarWidth_ =
+ /** @type {string} */ (getComputedStyle(this.$.sidebar).width);
},
/** @private */
« no previous file with comments | « chrome/browser/resources/md_bookmarks/app.html ('k') | chrome/browser/resources/md_bookmarks/compiled_resources2.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698