PolymerElements / iron-fit-behavior

Fits an element into another element
17 stars 34 forks source link

Enhancements to positioning and constraint behavior #37

Closed cdata closed 8 years ago

cdata commented 8 years ago

As a Polymer element author, when I create an element with special fitting requirements, I want more nuanced control over constraint and positioning, so that my fitted element fits the way I designed it to.

Polymer.IronFitBehavior should support for the following use cases:

  1. The fitted element can be configured with a minimum constrained width and constrained height.
  2. The fitted element can be configured to be automatically positioned so that it does not overlap the position target - instead it would be aligned along the edge of the position target's bounding rect.
  3. The fitted element should automatically adjust its alignment so as to minimize the area of the element that must be constrained.

http://www.lovethispic.com/uploaded_images/172990-If-It-Fits-I-Sits.jpg