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