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

Unified Diff: chrome/browser/resources/settings/languages_page/add_languages_dialog.js

Issue 2702523005: MD Settings: long dialog body should have overscroll line. (Closed)
Patch Set: revert format change 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
Index: chrome/browser/resources/settings/languages_page/add_languages_dialog.js
diff --git a/chrome/browser/resources/settings/languages_page/add_languages_dialog.js b/chrome/browser/resources/settings/languages_page/add_languages_dialog.js
index e8d2d277ccedcdc6f8108d471098c07871ab73ec..dc0e2b8e707ea11a6dd3657108671648f664ccb4 100644
--- a/chrome/browser/resources/settings/languages_page/add_languages_dialog.js
+++ b/chrome/browser/resources/settings/languages_page/add_languages_dialog.js
@@ -9,6 +9,10 @@
Polymer({
is: 'settings-add-languages-dialog',
+ behaviors: [
+ CrScrollableBehavior,
+ ],
+
properties: {
/** @type {!LanguagesModel|undefined} */
languages: {
@@ -22,7 +26,9 @@ Polymer({
/** @private {!Set<string>} */
languagesToAdd_: {
type: Object,
- value: function() { return new Set(); },
+ value: function() {
+ return new Set();
+ },
},
/** @private */
@@ -78,11 +84,11 @@ Polymer({
* @private
*/
getDisplayText_: function(language) {
- var displayText = language.displayName;
- // If the native name is different, add it.
- if (language.displayName != language.nativeDisplayName)
- displayText += ' - ' + language.nativeDisplayName;
- return displayText;
+ var displayText = language.displayName;
+ // If the native name is different, add it.
+ if (language.displayName != language.nativeDisplayName)
+ displayText += ' - ' + language.nativeDisplayName;
+ return displayText;
},
/**

Powered by Google App Engine
This is Rietveld 408576698