PolymerElements / iron-fit-behavior

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

prefer vertical over horizontal overlap #48

Closed valdrinkoshi closed 8 years ago

valdrinkoshi commented 8 years ago

When given the choice between overlapping horizontally or vertically, iron-fit-behavior now chooses to first try with vertical overlap, and then check horizontal overlap. In this way, in the cases where there's enough space for both options, the element will be positioned like [1] instead of like [2].

[1] screen shot 2016-05-09 at 6 38 08 pm

[2] screen shot 2016-05-09 at 6 38 55 pm

cdata commented 8 years ago

LGTM 👍