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

Unified Diff: third_party/polymer/v1_0/components-chromium/iron-list/README.md

Issue 1401633002: Update Polymer from 1.1.4 -> 1.1.5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dzhioev@ review 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
Index: third_party/polymer/v1_0/components-chromium/iron-list/README.md
diff --git a/third_party/polymer/v1_0/components-chromium/iron-list/README.md b/third_party/polymer/v1_0/components-chromium/iron-list/README.md
index ec6e6bd6e65039a4f14e2824c6e1d2a6a83dff20..caf68195f753b5d22a132785c83123cb06524826 100644
--- a/third_party/polymer/v1_0/components-chromium/iron-list/README.md
+++ b/third_party/polymer/v1_0/components-chromium/iron-list/README.md
@@ -65,7 +65,7 @@ bound from the model object provided to the template scope):
### Resizing
-`iron-list` lays out the items when it recives a notification via the `resize` event.
+`iron-list` lays out the items when it recives a notification via the `iron-resize` event.
This event is fired by any element that implements `IronResizableBehavior`.
By default, elements such as `iron-pages`, `paper-tabs` or `paper-dialog` will trigger
@@ -74,7 +74,19 @@ you might want to implement `IronResizableBehavior` or fire this event manually
after the list became visible again. e.g.
```js
-document.querySelector('iron-list').fire('resize');
+document.querySelector('iron-list').fire('iron-resize');
+```
+
+### Styling
+
+Use the `--iron-list-items-container` mixin to style the container of items, e.g.
+
+```css
+iron-list {
+ --iron-list-items-container: {
+ margin: auto;
+ };
+}
```
### When should `<iron-list>` be used?

Powered by Google App Engine
This is Rietveld 408576698