我正在使用聚合物iron-list
與紙卡,但問題是所有牌都重疊,直到改變設備的方向。 paper-card
圖片加載完成後請如何撥打notifyResize()
iron-list
。從網絡加載圖像後鐵牌重疊紙牌
<iron-list items="[[data.data]]" as="item" scroll-target="document">
<template>
<div style="margin-top: 20px">
<!--Card with header image-->
<paper-card heading="Emmental" image="http://placehold.it/350x150/FFC107/000000" alt="Emmental">
<div class="card-content">
<b>#[[index]] - [[item.category]]</b>
<p>[[item.heading]]</p>
</div>
<div class="card-actions">
<paper-button>Share</paper-button>
<paper-button>Explore!</paper-button>
</div>
</paper-card>
</div>
</template>
</iron-list>