| OLD | NEW |
| 1 /** | 1 |
| 2 /** |
| 2 * `IronResizableBehavior` is a behavior that can be used in Polymer elements
to | 3 * `IronResizableBehavior` is a behavior that can be used in Polymer elements
to |
| 3 * coordinate the flow of resize events between "resizers" (elements that cont
rol the | 4 * coordinate the flow of resize events between "resizers" (elements that cont
rol the |
| 4 * size or hidden state of their children) and "resizables" (elements that nee
d to be | 5 * size or hidden state of their children) and "resizables" (elements that nee
d to be |
| 5 * notified when they are resized or un-hidden by their parents in order to ta
ke | 6 * notified when they are resized or un-hidden by their parents in order to ta
ke |
| 6 * action on their new measurements). | 7 * action on their new measurements). |
| 7 * Elements that perform measurement should add the `IronResizableBehavior` be
havior to | 8 * Elements that perform measurement should add the `IronResizableBehavior` be
havior to |
| 8 * their element definition and listen for the `iron-resize` event on themselv
es. | 9 * their element definition and listen for the `iron-resize` event on themselv
es. |
| 9 * This event will be fired when they become showing after having been hidden, | 10 * This event will be fired when they become showing after having been hidden, |
| 10 * when they are resized explicitly by another resizable, or when the window h
as been | 11 * when they are resized explicitly by another resizable, or when the window h
as been |
| 11 * resized. | 12 * resized. |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // important not to notify them if the parent is not attached yet (or | 169 // important not to notify them if the parent is not attached yet (or |
| 169 // else they will get redundantly notified when the parent attaches). | 170 // else they will get redundantly notified when the parent attaches). |
| 170 if (!this.isAttached) { | 171 if (!this.isAttached) { |
| 171 return; | 172 return; |
| 172 } | 173 } |
| 173 | 174 |
| 174 this._notifyingDescendant = true; | 175 this._notifyingDescendant = true; |
| 175 descendant.notifyResize(); | 176 descendant.notifyResize(); |
| 176 this._notifyingDescendant = false; | 177 this._notifyingDescendant = false; |
| 177 } | 178 } |
| 178 }; | 179 }; |
| OLD | NEW |