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

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

Issue 2745593004: [MD Bookmarks] Add draggable sidebar. (Closed)
Patch Set: rebase Created 3 years, 9 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 | « chrome/browser/resources/md_bookmarks/toolbar.html ('k') | ui/webui/resources/html/cr/ui/splitter.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_bookmarks/toolbar.js
diff --git a/chrome/browser/resources/md_bookmarks/toolbar.js b/chrome/browser/resources/md_bookmarks/toolbar.js
index 6b89342cf60b2116c08b802315b13bf06ec394c7..816ee10df2fa939755451ed790dd82a235fa02bc 100644
--- a/chrome/browser/resources/md_bookmarks/toolbar.js
+++ b/chrome/browser/resources/md_bookmarks/toolbar.js
@@ -15,6 +15,11 @@ Polymer({
type: String,
observer: 'onSearchTermChanged_',
},
+
+ sidebarWidth: {
+ type: String,
+ observer: 'onSidebarWidthChanged_',
+ },
},
attached: function() {
@@ -80,6 +85,10 @@ Polymer({
this.dispatch(bookmarks.actions.setSearchTerm(searchTerm));
},
+ onSidebarWidthChanged_: function() {
+ this.style.setProperty('--sidebar-width', this.sidebarWidth);
+ },
+
/** @private */
onSearchTermChanged_: function() {
this.searchField.setValue(this.searchTerm_ || '');
« no previous file with comments | « chrome/browser/resources/md_bookmarks/toolbar.html ('k') | ui/webui/resources/html/cr/ui/splitter.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698