OLD | NEW |
1 iron-resizable-behavior | 1 |
2 ======================= | 2 <!--- |
3 | 3 |
| 4 This README is automatically generated from the comments in these files: |
| 5 iron-resizable-behavior.html |
| 6 |
| 7 Edit those files, and our readme bot will duplicate them over here! |
| 8 Edit this file, and the bot will squash your changes :) |
| 9 |
| 10 The bot does some handling of markdown. Please file a bug if it does the wrong |
| 11 thing! https://github.com/PolymerLabs/tedium/issues |
| 12 |
| 13 --> |
| 14 |
| 15 [](https://travis-ci.org/PolymerElements/iron-resizable-behavior
) |
| 16 |
| 17 _[Demo and API docs](https://elements.polymer-project.org/elements/iron-resizabl
e-behavior)_ |
| 18 |
| 19 |
| 20 ##Polymer.IronResizableBehavior |
| 21 |
4 `IronResizableBehavior` is a behavior that can be used in Polymer elements to | 22 `IronResizableBehavior` is a behavior that can be used in Polymer elements to |
5 coordinate the flow of resize events between "resizers" (elements that control t
he | 23 coordinate the flow of resize events between "resizers" (elements that control t
he |
6 size or hidden state of their children) and "resizables" (elements that need to
be | 24 size or hidden state of their children) and "resizables" (elements that need to
be |
7 notified when they are resized or un-hidden by their parents in order to take | 25 notified when they are resized or un-hidden by their parents in order to take |
8 action on their new measurements). | 26 action on their new measurements). |
9 | 27 |
10 Elements that perform measurement should add the `IronResizableBehavior` behavio
r to | 28 Elements that perform measurement should add the `IronResizableBehavior` behavio
r to |
11 their element definition and listen for the `iron-resize` event on themselves. | 29 their element definition and listen for the `iron-resize` event on themselves. |
12 This event will be fired when they become showing after having been hidden, | 30 This event will be fired when they become showing after having been hidden, |
13 when they are resized explicitly by another resizable, or when the window has be
en | 31 when they are resized explicitly by another resizable, or when the window has be
en |
14 resized. | 32 resized. |
15 | 33 |
16 Note, the `iron-resize` event is non-bubbling. | 34 Note, the `iron-resize` event is non-bubbling. |
| 35 |
| 36 |
OLD | NEW |