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

Unified Diff: chrome/browser/resources/settings/languages_page/edit_dictionary_page.html

Issue 2792463002: [MD settings] set scroll target for custom word spellings subpage (Closed)
Patch Set: 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 | « no previous file | chrome/browser/resources/settings/languages_page/edit_dictionary_page.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/languages_page/edit_dictionary_page.html
diff --git a/chrome/browser/resources/settings/languages_page/edit_dictionary_page.html b/chrome/browser/resources/settings/languages_page/edit_dictionary_page.html
index a248625552d215c8a7c4d492b4bc3e357616ea46..7220488e44cb90a64f2da3205e6d7fa9448906cf 100644
--- a/chrome/browser/resources/settings/languages_page/edit_dictionary_page.html
+++ b/chrome/browser/resources/settings/languages_page/edit_dictionary_page.html
@@ -5,6 +5,7 @@
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html">
+<link rel="import" href="../global_scroll_target_behavior.html">
<link rel="import" href="../prefs/prefs.html">
<link rel="import" href="../prefs/prefs_behavior.html">
<link rel="import" href="../settings_shared_css.html">
@@ -21,11 +22,6 @@
width: var(--paper-input-max-width);
}
- iron-list {
- /* TODO(michaelpg): Size to fit the viewport. */
- height: 300px;
- }
-
iron-list .word {
flex: 1;
}
@@ -50,7 +46,8 @@
<h2>$i18n{customDictionaryWords}</h2>
<div class="list-frame">
<template is="dom-if" if="[[hasWords_(words_.length)]]">
- <iron-list id="list" items="{{words_}}">
+ <iron-list id="list" items="{{words_}}"
+ scroll-target="[[subpageScrollTarget]]">
<template>
<div class="list-item">
<div class="word text-elide">[[item]]</div>
« no previous file with comments | « no previous file | chrome/browser/resources/settings/languages_page/edit_dictionary_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698