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

Unified Diff: chrome/browser/resources/settings/search_engines_page/search_engines_list.js

Issue 2855273002: Make fixed size scrolling more like other lists. (Closed)
Patch Set: feedback Created 3 years, 7 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/search_engines_page/search_engines_list.js
diff --git a/chrome/browser/resources/settings/search_engines_page/search_engines_list.js b/chrome/browser/resources/settings/search_engines_page/search_engines_list.js
index 4134688459165f054b3534aaffa9864e0be18fd1..eb74091ec6761070ed289694df67ced3338240fa 100644
--- a/chrome/browser/resources/settings/search_engines_page/search_engines_list.js
+++ b/chrome/browser/resources/settings/search_engines_page/search_engines_list.js
@@ -36,7 +36,15 @@ Polymer({
* Fix height of list if no scrollTarget is present.
* @return {string}
*/
- getIronListClass_: function() {
- return this.scrollTarget ? '' : 'fixed-height-list';
+ getHeightClass: function() {
+ return this.scrollTarget ? '' : 'fixed-height-container';
+ },
+
+ /**
+ * Only scroll when no target is set.
+ * @return {boolean}
+ */
+ isScrollable: function() {
+ return !this.scrollTarget;
},
});

Powered by Google App Engine
This is Rietveld 408576698