On card image loaded, redistribute cards

This commit is contained in:
Cássio Zen
2016-07-12 17:25:26 -03:00
parent ea9923e0c8
commit 7dcd8c3d64
2 changed files with 42 additions and 8 deletions

View File

@ -57,6 +57,7 @@ export default class EntryListing extends React.Component {
key: entry.get('slug'),
collection: collection,
onClick: browserHistory.push.bind(this, link),
onImageLoaded: () => this.bricksInstance.pack(),
text: entry.getIn(['data', collection.getIn(['card', 'text'])]),
image: entry.getIn(['data', collection.getIn(['card', 'image'])]),
});