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

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

Issue 1385113002: MD Downloads: a step toward better RTL support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/toolbar.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2f7e325881752bbf74361bc34e28c6bcccff3cde..d6c638911acbb17d886eafe00f432bb8992da88e 100644
--- a/chrome/browser/resources/md_downloads/crisper.js
+++ b/chrome/browser/resources/md_downloads/crisper.js
@@ -15345,6 +15345,9 @@ cr.define('downloads', function() {
is: 'downloads-toolbar',
attached: function() {
+ // isRTL() only works after i18n_template.js runs to set <html dir>.
+ this.overflowAlign_ = isRTL() ? 'left' : 'right';
+
/** @private {!SearchFieldDelegate} */
this.searchFieldDelegate_ = new ToolbarSearchFieldDelegate(this);
this.$['search-input'].setDelegate(this.searchFieldDelegate_);
@@ -15357,6 +15360,11 @@ cr.define('downloads', function() {
value: false,
observer: 'onDownloadsShowingChange_',
},
+
+ overflowAlign_: {
+ type: String,
+ value: 'right',
+ },
},
/** @return {boolean} Whether removal can be undone. */
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/toolbar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698