我想创建以下方案中解释的行为:
每次元素在屏幕之外时,我都希望将其放在右侧的新列中。
目前,所有元素都在同一列中。
这是我的元素当前的显示方式:
<style is="custom-style" include="iron-flex">
.flex-wrap {
@apply(--layout-wrap);
@apply(--layout-vertical);
}
</style>
<template>
<div class="container flex-wrap" >
<template is="dom-repeat" items="{{employeesArray}}">
<employee-element name="{{item.title}}"
preview="{{item.preview}}"
width={{item.width}} height={{item.height}}>
</employee-element>
</template>
</div>
</template>
如何强制将元素放置在我绘制的位置?